-->
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.  [ 7 posts ] 
Author Message
 Post subject: one task with several destination
PostPosted: Wed Jul 26, 2006 7:38 am 
Newbie

Joined: Sun Jul 09, 2006 3:21 am
Posts: 15
hi
i have one task such as hbm2java and many tables and i want to reverse engineering ,, i want to specify the package for each .java file ,,is this possible ???


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 8:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - set classname attribute on table in reveng.xml

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:26 am 
Newbie

Joined: Sun Jul 09, 2006 3:21 am
Posts: 15
hi max
i do this in rev eng file :
<table schema="mySchema" catalog="myCatalog" name="myName" class="myPackage/myClass" />

was that what you mean ?
hibernatetools make the file in separated folders but name of the class is "myPackage/myClass" but seems it must be "myClass"

thnks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:32 am 
Newbie

Joined: Sun Jul 09, 2006 3:21 am
Posts: 15
excuse me max
i try myPackage.myClass instead of mypackage/myClass and it works correctly


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:35 am 
Newbie

Joined: Sun Jul 09, 2006 3:21 am
Posts: 15
can i specify the package name for the DAO file ??
the package of dao is the same package of my dto file
can i set the package name for dao and another package name for dto file ??
thnks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yup it is a class name not a file or resource name ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
srmo642002 wrote:
can i specify the package name for the DAO file ??
the package of dao is the same package of my dto file
can i set the package name for dao and another package name for dto file ??
thnks


no, not really. I guess we should let that be an option.

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