-->
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: Using composite-id AND generator together -- possible?
PostPosted: Thu Dec 20, 2007 5:33 pm 
Newbie

Joined: Sat Dec 20, 2003 10:48 am
Posts: 2
Hibernate version: 3.2.5ga

I am trying to create mapping files to a legacy Oracle database where I have discovered some strangeness.

One of the tables has a primary key consisting of two fields:

Code:
     SALESPERSON_ID number
     DEALER_ID varchar2



the SALESPERSON_ID is populated via a sequence. The DEALER_ID is not.

I am trying to use <composite-id> to map the primary key, but am unsure if/how to incorporate the <generator> for the sequence.

Is this possible? Changing the DB is not an option.

Thanks!

_________________
-- Nayan Hajratwala
-- Chikli Consulting LLC
-- http://agileshrugged.com - http://chikli.com


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.