-->
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: Table and column comments Oracle10g
PostPosted: Thu Oct 25, 2007 10:31 pm 
Newbie

Joined: Thu Oct 25, 2007 10:18 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.2.4 SP1
Mapping documents:
NA
Code between sessionFactory.openSession() and session.close():
NA
Full stack trace of any exception that occurs:
NA
Name and version of the database you are using:
Oracle10G
The generated SQL (show_sql=true):
NA
Debug level Hibernate log excerpt:
NA

Problems with Session and transaction handling?
NA
Read this: http://hibernate.org/42.html

I want to generate my persistence classes using Hibernate tools as EJB3 entities.

I tried using seam "generate_entities" to generate my persistence classes for Oracle 10g DB . I assume behind the scenes they use hibernate tools to do this.

Everything works fine, But I have a question here. Is there any way that the Table and Columns comments can be incorporated as Class and Attribute commments in the generated classes. I am seeing this Comments as part of generation in the console. Is there anyway these comments can be incorporated in the respective classes ?

Also is there is any ant task as part of seam that I can incorporate in my build.xml?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 2:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
1) we don't put the comments from tables into the model since there isn't a one-to-one mapping...you can adjust the templates to do so if you wish.

2) ant tasks - read docs on tools.hibernate.org

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Pointers/Ideas to adjust the template
PostPosted: Fri Oct 26, 2007 4:21 am 
Newbie

Joined: Thu Oct 25, 2007 10:18 pm
Posts: 2
Thanks max, Can you provide me any pointers/ideas to adjust the templates.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 4:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Look in the docs at tools.hibernate.org and look at the templates in hibernate-tools.jar is the best resource.

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