-->
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: Setting package for classes generated using jpaconfiguration
PostPosted: Fri Jun 15, 2007 3:00 pm 
Newbie

Joined: Fri Jun 15, 2007 2:32 pm
Posts: 16
Hibernate version:
3.2.4.sp1

I want to generate JPA classes from my existing DB.

This is a part of my current ant task:

Code:
<hibernatetool destdir="../src">
        <jpaconfiguration persistenceunit="myproject"/>

        <classpath>
            <path location="../classes"/>
        </classpath>

        <hbm2java jdk5="true" ejb3="true"/>

    </hibernatetool>


How can I customize it so the generated classes will be assigned to a package?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 6:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use jdbcconfiguration if you want to go from the db ....for options read the docs ;)

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