-->
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.  [ 1 post ] 
Author Message
 Post subject: NamingStrategy not picked up in transaction commit
PostPosted: Thu Jan 06, 2005 2:34 pm 
Newbie

Joined: Thu Jan 06, 2005 1:48 pm
Posts: 3
Hi All,
I am using 2.1.7, and I am setting the ImprovedNamingStrategy on my session factory. When I run the debug, however, I get

net.sf.hibernate.cfg.Binder.bindProperty(Binder.java:487)
DEBUG 2005-01-06 13:12:26,396 [main] - Mapped property: noExportCommunity -> noExportCommunity, type: string

OK, thanks for all the help. You know how sometimes just telling others the problem leads to a solution?

Well, the above happens if you set the naming strategy _after_ you add the classes to be mapped. If I set the naming strategy before (like, if you cut and paste the example) then it works fine.

Is this a bug? I would expect to have to set the naming strategy before the session factory is built, but it's not clear at all that it is order dependant with the mapping files.

Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.