-->
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: Composite.id with an auto-increment key property?
PostPosted: Tue Sep 07, 2004 4:37 am 
Newbie

Joined: Thu Feb 12, 2004 12:21 pm
Posts: 13
Location: Hungary
Hi,

I'd like to know, if Hibernate can manage with a composite.id element that has an auto-increment key property?

I show a class which I'd like to work with:
Code:
public class LineItem {

   public static class Id extends BaseObject {
      private Order order;
      private Long index;
   }

   private Id key;

}


So, e.g. I have an Order, which contains LineItems, each of which has an "index", that should be an auto-increment property with Hibernate generator identity.

Can anyone show me hbm.xml representation?

Thanks.

Regards,
Thomas


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.