-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: [FIXED] JOINED strategy using composite key with @ManyToOne
PostPosted: Mon Jan 21, 2008 9:29 am 
Newbie

Joined: Fri Mar 17, 2006 12:54 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.