Joined: Tue Mar 30, 2004 9:58 am Posts: 8 Location: Chicago, IL
|
Hello,
We have an unique situation. We have adentical tables under diffrent schemas. We have a schema for each customer. When a message arrives from a customer, depending on the messge origin (customer) we store the message in the appropriate table in the appropriate schema belonging to the customer.
I tried the following:
Configuration cfg = this.sessionFactoryBean.getConfiguration();
PersistentClass pc = cfg.getClassMapping("com.vibes.aggregator.service.routing.model.MtShortMessage");
Table table = pc.getTable();
table.setSchema("client_11");
getHibernateTemplate().merge (mtShortMessage);
But, every time I do this the data gets saved in the original schma.
Any help would be appreciated!
Thanks
Matt
_________________ Matt Madhavan, Consultant
|
|