-->
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.  [ 2 posts ] 
Author Message
 Post subject: Entity without table?
PostPosted: Mon Dec 11, 2006 1:05 pm 
Newbie

Joined: Fri Dec 01, 2006 12:13 pm
Posts: 3
Is there a way to create an entity that does not map to a table?

What I am trying to do is create a Company domain object. This will contain departments, etc that are mapped to the company entity logically. We do not have a company entity in our database however, the database as a whole is logically within the context of the company.

Does anyone know how I would define the mappings for a Company entity that does not have a corresponding mapping table? I can't figure out how I would load it since there is no table to query against.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 4:54 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you might be able to create a view to mimic the virtual table

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.