-->
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: Help with custom SessionFactory
PostPosted: Wed Jun 13, 2007 2:29 pm 
Newbie

Joined: Wed Mar 07, 2007 12:32 pm
Posts: 7
I want a SessionFactory limits it's creation to only classes mapped to a particular schema name. For example, if I have a class mapped to table "sun:account", "sun" is the schema name and "account" is the table within the schema.

Now, from spring, I want to configure a bean such SchemaSessionFactoryBean that has it's schema property set to "sun". During initialization, the bean would allow mappings created for classes mapped to the "sun" schema while removing mappings to another schema such as "microsoft:sales".

I'm currently going down the path of trying to remove invalid schemas in the postProcessConfiguration(config) method from spring's LocalSessionFactoryBean. Anyone have a better approach or know of an existing solution?

The answer to "why" is longer than I'd like to write. ;^)


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.