Karel Vervaeke

Greenhorn
+ Follow
since Jul 20, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Karel Vervaeke

Originally posted by Scott Selikoff:

And in the words of a friend of mine "Not writing nything"? Ok first nothing is misspelled but even still "no i am not writing nothing" ... such bad grammar.
[ August 19, 2008: Message edited by: Scott Selikoff ]



The poster meant to write "anything". As a typo, "any -> ny" makes much more sense than "not -> nyt"
9 years ago
You're saying your id has unsaved-value=null,
you should make sure that the java-type of this id is nullable.
int id; // is not nullable.

You should either
1) specify an unsaved-value (e.g. -1) and make sure you set the id to -1 when constructing the persistent object.

/or/
2) use an Integer id; (default=null)

HTH
Oops, that was supposed to be a reply to
http://www.coderanch.com/t/214822/ORM/java/one-many-relation

I'm reposting it there right now, moderators, please delete this thread :/
You're saying your id has unsaved-value=null,
you should make sure that the java-type of this id is nullable.
int id; // is not nullable.

You should either
1) specify an unsaved-value (e.g. -1) and make sure you set the id to -1 when constructing the persistent object.

/or/
2) use an Integer id; (default=null)

HTH