[jboss-user] [EJB 3.0] - Re: Single Inheritance / ConstraintViolationException / Pos
you can use @Column like this: @OneToMany(cascade = {CascadeType.ALL}) | @Column(nullable=false) | ListJuniors juniors = new ArrayListJuniors(); | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084451#4084451 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Single Inheritance / ConstraintViolationException / Pos
you could try @Column(nullable=false) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083998#4083998 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083998 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Single Inheritance / ConstraintViolationException / Pos
Thanks for the advice. However, the problem is that those columns are out of scope for any annotations I place on my columns. That's because those columns are automatically generated by hibernate to keep track of the OneToMany relationships. In other words I have no column on which I could place this annotation - because I don't define them (Only indirectly versus the OneToMany annotation). Hibernate should realize byitself that only ONE of those columns should be set per row and that the other columns should be set to NULL. Any other ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084057#4084057 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084057 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user