-->
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: Generate Hibernate mappings programatically
PostPosted: Tue Nov 22, 2005 5:23 am 
Beginner
Beginner

Joined: Mon Aug 02, 2004 7:28 am
Posts: 38
Hibernate version: 3

I want to build up a Hibernate session without any Hibernate Mappings. Basicly building the mappings in memory myself, rather than using mappings.

Is this possible and is there any guidelines available?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 22, 2005 5:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
possible yes, guidelines not reallyh but you can go look at HbmBinder in the core or the JDBCBinder in the tools

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 22, 2005 6:06 am 
Beginner
Beginner

Joined: Mon Aug 02, 2004 7:28 am
Posts: 38
Thanks, I'll have a look at these two options.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 12:43 pm 
Beginner
Beginner

Joined: Mon Aug 02, 2004 7:28 am
Posts: 38
Max,

I tried this, but it seems like a bad desicion to do whatever the hbmBinder is doing. Do you know of anything/tool, that would generate me mappings from java source, apart from Xdoclet?

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 12:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - ejb3 annotations ;)

we have a jira somewhere on extending the annotationsbinder to not be dependent on @Entity etc. but simply use the class names and generics information....but otherwise no.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 13, 2005 11:26 am 
Beginner
Beginner

Joined: Mon Aug 02, 2004 7:28 am
Posts: 38
Max,

Thanks for you help.

I have another question:

In a parent - child relationship, how crucial is it to hav a bidirectional relation ship?

If I'm unclear, let me know.

Thanks in advance.


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.