[jboss-user] [EJB 3.0] - Re: howto? new entity persist with aggregates that are alrea

wolfc do-not-reply at jboss.com
Wed Mar 7 01:51:24 EST 2007


"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.
anonymous wrote : Specs on insertable and updatable:
  | Whether the column is included in SQL UPDATE/INSERT statements generated by the persistence provider.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025681#4025681

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025681



More information about the jboss-user mailing list