-->
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: Database > Mapping Generation: component
PostPosted: Wed Sep 26, 2007 8:01 am 
Newbie

Joined: Tue May 16, 2006 10:00 am
Posts: 4
Location: Germany
Hi there,

first of all I really like Hibernate Tools and use it a lot :-) There is one question I still have: Is it possible to generate a mapping like the following out of my DB schema?

Code:
<component name="myProperty" insert="true" update="true">
<property name="foo1">
   <column name="bar1"/>
  </property>
  <property name="foo2">
   <column name="bar2"/>
  </property>
</component>


I think this is currently not possible, right? Is something like this planned for a future release? Should I open a Jira issue for this or is there already one but I can't find it?

Regards

Kai


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
There are no info in a db to say two columns should be a property...and we don't have that ability for the reveng.xml yet.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 3:26 pm 
Newbie

Joined: Tue May 16, 2006 10:00 am
Posts: 4
Location: Germany
Hi Max,

yes, thats for sure that the db has no information about this *g*. But this would be a nice change request for the reveng.xml, right?

Or are changes in the schema of this file outside of the scope of Hibernate Tools?

cheers

Kai


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 8:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we can actually handle multicolumn types, but we don't really havea good way of saying these two columns becomes one property....

it's on the border of the scope...the reveng.xml starts becoming a mapping file at this point.

_________________
Max
Don't forget to rate


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.