-->
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.  [ 4 posts ] 
Author Message
 Post subject: Entity without table
PostPosted: Wed Jan 03, 2007 5:00 am 
Newbie

Joined: Wed Jan 03, 2007 4:19 am
Posts: 2
Hi guys,
I have an entity called ScheduleOperations which refers to entity RefferencePattern .However this RefferencePattern doesnt have table of its own

How to write the hibernate mapping for ScheduleOperations in this case??
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 5:17 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
It depends on the relationships between those two classes. How would you represent it using UML for example? Composition? Association? nary ? unary?

From what you describe, I guess you have something like a component mapping (http://www.hibernate.org/hib_docs/refer ... nents.html) => it will let you put the corresponding columns into the table of the container entity (so, you're obviously forced to have an unary multiplicity to do this).

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject: Re: Entity without table
PostPosted: Tue Nov 22, 2011 4:37 pm 
Newbie

Joined: Tue Nov 22, 2011 4:22 pm
Posts: 1
Good evening everybody

My class mate and me are trying to run hibernate, but we get an error message from the session factory "Sessionfactory error: could no determine type for: java.sql.Connection, at table:CAT_DBCONNECTOR, for columns: [org.hibernate.mapping.Column(CON)].
We do not have a table called CAT_DBCONNECTOR (it is only a class in our eclipse-project) in our database (HSQLDB) and this is why this error message appears.

The solution seams indicated above, but the link does not work and we are a bit stuck here.
So can you please help us, because we are true newbies.

Thank you!


Top
 Profile  
 
 Post subject: Re: Entity without table
PostPosted: Thu Jan 05, 2012 12:26 pm 
Newbie

Joined: Fri Nov 25, 2011 2:13 pm
Posts: 1
Hi Rickle88,

the document mentioned by batmat is Hibernate reference, Chapter "Component mapping". It can be found here: archived at time of batmat's post or current version.

However, i don't think your problem is really related to this topic. You should probably start a new topic with more info.


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