-->
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: hibernatetools, annotations and .par files
PostPosted: Wed Oct 05, 2005 5:20 pm 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
Hi all,

To date, I've been using Hibernate Annotations, then using the HibernateToolTask's <hbm2ddl> directive to generate the DDL and output to file. I had a hibernate.cfg.xml file which specified the mappings via the <mapping class=""> tag.

I've recently moved the code around to use the EntityManager and a .par file, in part so I wouldn't have to edit the <mapping class=""> entries every time I add, remove or refactor my mapping classes. However, the HibernateToolTask seems to rely on the <annotationconfiguration> tag, which means I'll have to use hibernate.cfg.xml once again to explicitly declare my mappings.

Is there any way to get HibernateToolTask to read a .par file instead? Or is there some other tool that I could use that will read the .par file to generate my DDL?

Thanks,

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 4:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry no, not yet.

I will require someone to make a <ejb3configuration> or similar that uses the Hibernate entitymanager to setup the configuration instead.

Contributions welcome ;)

_________________
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.  [ 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.