Please use the google group to ask questions - thanks.

by cmendis 12 May 04:42
Inheritance issue

I have an abstract Person class and an Employee class that extends Person. Person defines the id field with strategy=GenerationType.IDENTITY. As Employee extends Person, Employee doesnt explicitly define an ID field (but the database has one).
I'm using the @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) annotation in the Person entity.
When trying to create a person, I'm getting the error, "Cannot insert the value NULL into column 'ID', table Employee." - Is this scenario supported?
I'm also trying to use a @MappedSuperClass - it seems that Avaje insists on a dtyle (discriminator) column even for classes that extend that class.

14 Jun 11:22
by Rob

Please post you issue onto the Google Group.

Thanks, Rob.

Create a New Topic

Introduction User Guide (pdf) Install/Configure Public JavaDoc Whitepapers
General Database Specific Byte Code Deployment Annotations Features
Top Bugs Top Enhancements