This content has been marked as final.
Show 3 replies
-
1. Re: howto? Foreign key inserted as null - bug?
hanasakijiji Mar 6, 2007 12:48 PM (in response to hanasakijiji)http://jira.jboss.com/jira/browse/EJBTHREE-694
Is this the bug?
Any workarounds? -
2. Re: howto? new entity persist with aggregates that are alrea
wolfc Mar 7, 2007 1:51 AM (in response to hanasakijiji)"hanasakijiji" wrote:
NewInstance.get/setValue are defined below:@OneToOne(cascade=CascadeType.ALL) @JoinColumn(name="aggregate_fk", insertable=false, updatable=false, referencedColumnName="pk") public Aggregate getValue() { return aggregate; }
Either remove insertable and updatable or set them explicitly to true.Specs on insertable and updatable:
Whether the column is included in SQL UPDATE/INSERT statements generated by the persistence provider. -
3. Re: howto? new entity persist with aggregates that are alrea
hanasakijiji Mar 7, 2007 9:02 AM (in response to hanasakijiji)I agree that this makes sense and have tried this approach. JBoss throws an error, on deployment, and says that they MUST be explicitly set to false. :(