-->
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.  [ 6 posts ] 
Author Message
 Post subject: Inheritance issue generating inappropriate constraints
PostPosted: Fri Jun 26, 2009 7:36 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
Hi, i have a problem with generating appropriate constraints with the following class structure.
Image


when hibernate generates the ddl for this structure. it adds a constraint into Drivers for Car, Bike and Truck. but it only needs a constraint into Vehicle since Car Bike and Truck use PFK for vehicle_id.

How can i annote the one to many association with MotorVehicle and Drivers appropriately so that this is captured by jpa?


Top
 Profile  
 
 Post subject: Re: Inheritance issue generating inappropriate constraints
PostPosted: Sun Jul 12, 2009 7:13 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
I'm still stuck for solutions on this, anyone have any hints or references i should look into?


Top
 Profile  
 
 Post subject: Re: Inheritance issue generating inappropriate constraints
PostPosted: Mon Jul 27, 2009 5:29 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
if there is any further clarification i can give anyone who might have a solution for this, please let me know


Top
 Profile  
 
 Post subject: Re: Inheritance issue generating inappropriate constraints
PostPosted: Mon Aug 10, 2009 5:15 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
still need an answer on this, any clues, queries? let me know.


Top
 Profile  
 
 Post subject: Re: Inheritance issue generating inappropriate constraints
PostPosted: Wed Sep 02, 2009 10:04 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
still awaiting any kind of assistance on this.


Top
 Profile  
 
 Post subject: Re: Inheritance issue generating inappropriate constraints
PostPosted: Thu Sep 24, 2009 7:12 am 
Beginner
Beginner

Joined: Fri Jun 26, 2009 6:59 am
Posts: 23
this is still an outstanding issue.


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

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.