-->
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: Middlegen truncate table names
PostPosted: Fri Dec 19, 2003 1:24 pm 
Newbie

Joined: Fri Dec 19, 2003 1:08 pm
Posts: 11
New to hibernate/middlegen plugin and I apologize if this is in the docs somewhere.

I'm running middlegen task from ant with hibernate plugin (2.0-b2-dev.jar and 2.0-b3-dev.jar) against Postgres 7.3.4 with pg73jdbc3.jar. I'm able to generate .hbm.xml files for my tables with one issue that is confusing.

Why are "es" in table names chopped in base-class-name?

For example, a table named Files becomes:
hibernate.tables.files.base-class-name=Fil

in the generated properties file.

-Todd


Top
 Profile  
 
 Post subject: Got it
PostPosted: Fri Dec 19, 2003 3:15 pm 
Newbie

Joined: Fri Dec 19, 2003 1:08 pm
Posts: 11
Hey Todd,

Hope things are going well.

I reviewed Middlegen in more depth and see this is the default behaviour. It can overridden with a table element with singular attribute.

Now, I'm going to try to figure out if this singular attribute can be set globally or on a per table basis.

Regards,
Todd


Top
 Profile  
 
 Post subject: currently, it's global
PostPosted: Fri Dec 19, 2003 3:40 pm 
Newbie

Joined: Fri Dec 19, 2003 1:08 pm
Posts: 11
Talking to myself again, but maybe this will help someone-

http://forum.hibernate.org/viewtopic.ph ... t=singular


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 20, 2003 11:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Looks like you found your answer.


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.