-->
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: Hibernate Tools 3.0: how to make name begin with lower case
PostPosted: Fri May 06, 2005 12:15 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
in mapping files generated by Hibernate Tools 3.0 alpha 1
the first char of the properties' name is uppercase.

how to change it to lower case.



<id
name="RelId" =============I want the name is "relId"
type="java.lang.Integer"
>
<column name="REL_ID" not-null="true" unique="true" sql-type="INTEGER" />
<generator class="assigned" />
</id>

<property
name="Title" ============I want the name is "title"
type="java.lang.String"
>
<column name="TITLE" length="50" not-null="true" sql-type="VARCHAR" />
</property>

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 12:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
already fixed in the cvs version

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 3:19 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
thanks.

is there any ways to remove the prefix of the table name?

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 4:38 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
I checkout the modules.
but I can't compile it.

how to I.


common
org.hibernate.eclipse
org.hibernate.eclipse.console
org.hibernate.eclipse.feature
org.hibernate.eclipse.help
org.hibernate.eclipse.mapper
org.hibernate.eclipse.releng

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 4:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
how to build: http://hibernate.bluemars.net/268.html

to remove table prefix use your own reversenamingstrategy which at the moment is only avaialble in the ant task version.
It was recently added: http://opensource.atlassian.com/project ... se/HBX-247

and the docs for ant tasks is at http://cvs.sourceforge.net/viewcvs.py/* ... ml?rev=1.8

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 5:35 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
I built org.hibernate.eclipse and org.hibernate.eclipse.mapper and replaced



build it still use uppercase for the first char of the property's name

and if I replace org.hibernate.eclipse.console
it can't work


<id
name="RelId" =============I want it names "relId"
type="java.lang.Integer"
>
<column name="REL_ID" not-null="true" unique="true" sql-type="INTEGER" />
<generator class="assigned" />
</id>

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 5:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it seems parts of your post is missing - can't understand it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 6:18 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
I 've built org.hibernate.eclipse and org.hibernate.eclipse.mapper

and replaced the files.

but , it still generated property's name begin with upper case

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 3:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the code for actually performing the transformation is in the tools directory - have you rebuilt that ? and followed the instructions at http://hibernate.bluemars.net/268.html ?

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