This content has been marked as final.
Show 2 replies
-
1. Re: Persistence Q: How to use a sequence-generated value on another class?
dolanp.dolanp.gmail.com Mar 4, 2009 9:35 PM (in response to dolanp.dolanp.gmail.com)Looks like I figured this one out myself. If the target entity does not exist, I must use persist() rather than merge() and then the ID is available to use on the setter of my secondary class.
:)
-
2. Re: Persistence Q: How to use a sequence-generated value on another class?
kragoth Mar 5, 2009 1:33 AM (in response to dolanp.dolanp.gmail.com)Not using a ManyToOne could cause you to end up with corrupt/invalid data.
What's the reason for not using a ManyToOne?