-->
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: Foreign Keys to table not managed by Hibernate.
PostPosted: Wed Jun 09, 2010 7:50 am 
Newbie

Joined: Tue Jun 08, 2010 8:04 pm
Posts: 1
Hi,

I'm working with a fairly non-standard system. I'm using XML to describe my Objects and generate my schema. I have some objects which in my database I want to have a foreign key relationships to, but which are from another system not using Hibernate.

So, as an example, let's say I have a Hibernate-managed table UserMetadata. I want it to have a foreign key constraint to a User table that is NOT managed by Hibernate. This is purely for data consistency and referential integrity in the database.

Is this possible? I've been looking around and haven't been able to find any related information.

Thanks!


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.