I was writing some simple slide generator. and in that process I write hbm.xml file and put this line in there.
<property name="photoSlideId" column="photo_slide_id" type="long" not-null="false" length="8" />
then I put needed variable into the class like this:
private long photoSlideId;
then I start to get photos list as null. it was impossible because it has to generate a exception or something in that situation. then I realized that this code was trying to assign null into the "long" type variable. it was impossible because in java we cannot assign null into the primitive types. then I changed class like this
private Long photoSlideId;
and its working like a charm.
Subscribe to:
Post Comments (Atom)
speed test glasgow
at first test upload was 20mbps, something broke it now it gives 0.07 but I am happy with 129 download and price is 16 £
-
I know its been a long time I have not write anything. because I have not learn or done any new things. I dont want to write regular meaning...
-
After iphone 16 I wanted to test an android and looks like sony xperia 10 VI is nice, which is 6.1 inches, but it was narrow and longer than...
-
in .net 2 if you want to show your application in system tray . you need to add notify icon to your application and set the "ShowInTas...
No comments:
Post a Comment