-->
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.  [ 9 posts ] 
Author Message
 Post subject: how to make property lowercase using hibernate tool
PostPosted: Tue Mar 15, 2005 11:50 pm 
Beginner
Beginner

Joined: Tue Mar 15, 2005 1:26 am
Posts: 20

I use hibernate tool to make .hbm.xml and .java files, but the property in java file is capital with first letter. how to make property lowercase?
Thanks a lot


_________________
OR maping? not familar. seems easy select, hard delete/update


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 16, 2005 3:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it as a request in the jira....at the moment the same logic is used for field and property names. we need two separate namingstrategies for them

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Is there any config file for this?
PostPosted: Wed Mar 16, 2005 7:16 am 
Beginner
Beginner

Joined: Tue Mar 15, 2005 1:26 am
Posts: 20
Is there any config file for this?

_________________
OR maping? not familar. seems easy select, hard delete/update


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 16, 2005 7:37 am 
Hibernate Team
Hibernate Team

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

there will be.

at the moment it is controlled in code by ReverseNamingStrategy

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 6:01 am 
Beginner
Beginner

Joined: Tue Mar 15, 2005 1:26 am
Posts: 20
Thanks a lot.

_________________
OR maping? not familar. seems easy select, hard delete/update


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 4:34 am 
Beginner
Beginner

Joined: Sun Jul 25, 2004 11:15 pm
Posts: 24
How about if I want to define some rules for the property naming? is that possible?

For example, if I have a database in which the column names start with a prefix, and i don't want this prefix to appear in the property name, how would I make the generator ignore this prefixes?

Same applies to table names that get carried on to class names.

If I do the mapping only once, then i can manually edit the xml files, and everybody will be happy. But that is not a solution once you need to repeat the process so many times.

I hope there is an easy way to control this by setting some rules for creating class and property names in the mapping generator.

Thanks
H.S.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 4:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Did you look at ReverseNamingStrategy ?

It was built for the purpose you state.

Now I just need to find a good way to expose it in the ui.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 5:14 am 
Beginner
Beginner

Joined: Sun Jul 25, 2004 11:15 pm
Posts: 24
Actually I have not.

That must be a challenge to add in the gui.

I appreciate your patience, but how do i access the project?

I come from netbeans, and working with eclipse is new to me.

I checked out the sources from cvs.(module HibernateExt)
but i can't open an eclipse project to see the gui.
I know this is not the place to be learning eclipse!, but I appreciate any pointers!


thanks
H.S.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 7:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
http://www.hibernate.org/268.html

if you just want to mess with the engine you dont need eclipse.

its only the visual stuff that is tied to eclipse.

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