Hi All,
This is my first roo project. It sure looked easier watching the videos.
I have an Owner to persist:
Yet when I try to create one using the UI that roo generates I get this error in the console:Code:@RooJavaBean @RooToString @RooEntity(table = "Owner", identifierField="ownerID", identifierColumn="OwnerID") public class Owner { @Id @Column(name="OwnerID", unique = true, nullable=false) @GeneratedValue(strategy = GenerationType.AUTO) private Long ownerID;
I'm saying OwnerID nullable=false and that it should be auto-generated. So why is it passing null and/or why does it care since it should provide one for me?Code:ERROR org.hibernate.util.JDBCExceptionReporter - Attempt to insert null into a non-nullable column: column: OWNERID table: OWNER in statement [insert into owner (ownerid, email, owner_name, password, password_hint, version) values (null, ?, ?, ?, ?, ?)]
Any suggestions are greatly appreciated.
Andrew


Reply With Quote


