I am trying to map a database that uses a composite key and with a JOINED inheritance strategy. The composite key is made up of two ManyToOne associations. I'm able to build the abstract super class of the JOINED relationship just fine using hbm2ddl, but when I go to create the tables containing the concrete classes I get a java.util.NoSuchElementException.
[edit]
Running hbm2hbmxml also fails at the same place.
The full stack trace and test project can be found in
http://opensource.atlassian.com/project ... se/ANN-621
Any help would be appreciated.
Nathan
Hibernate version:
hibernate-core 3.2.5.GA
hibernate-annotations 3.3.1.beta1
Mapping documents:
see attachment in
http://opensource.atlassian.com/project ... se/ANN-621
Name and version of the database you are using:
PostgreSQL 8.2
[edit]
It turns out this was failing because the embedded primary key had only transient association member variables. I fixed this by adding getter/setter access to the respective id fields.