-->
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.  [ 3 posts ] 
Author Message
 Post subject: NamingStrategy Interface Out-of-Date
PostPosted: Thu Jan 22, 2004 5:17 am 
Newbie

Joined: Thu Jan 22, 2004 5:07 am
Posts: 9
Seems as though the documentation re: the NamingStrategy interface is out-of-date as there is no such interface in the 2.1 release.

Can anyone tell me how to implement a custom naming strategy?

Relevant for the schemaexporter!?!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 12:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It is in 2.1.1


Top
 Profile  
 
 Post subject: Thanks . . . But . . .
PostPosted: Thu Jan 22, 2004 5:44 pm 
Newbie

Joined: Thu Jan 22, 2004 5:07 am
Posts: 9
Of course, I didn't even consider that the NamingStrategy was implemented in the dot dot release. I found the interface, but there's still another problem:

The docs say I can do this . . .

SessionFactory sf = new Configuration()
.setNamingStrategy(ImprovedNamingStrategy.INSTANCE)
.addFile("Vertex.hbm.xml")
.addFile("Edge.hbm.xml")
.buildSessionFactory();

But the implementation of .setNamingStrategy is this . . .

public void setNamingStrategy(NamingStrategy namingStrategy) {
this.namingStrategy = namingStrategy;
}

It doesn't return a Configuration. I'll workaround for now.


best,
jk


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.