-->
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.  [ 2 posts ] 
Author Message
 Post subject: propertie für schema (Class)
PostPosted: Mon Aug 13, 2007 4:08 am 
Newbie

Joined: Tue Nov 15, 2005 10:18 am
Posts: 13
Hallo zusammen,

wie lautet die Property, die man an dieser Stelle einträgt:

<class
name="xx.xx.Charge"
table="MMMMM"
schema="test">

Ich versuche dynamisch (zur Laufzeit) ein neues Schema einzutragen. Diese Variante funktioniert leider nicht. Hat jemand eine Idee, welche Einträge noch fehlen:

Code:
Configuration cfg = new Configuration().addResource("xx/xx/Charge.hbm.xml");
      cfg.setProperty(PersistentIdentifierGenerator.SCHEMA, "neuerwert" );


Vielen dank im Voraus!

LG
Vicky


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 27, 2007 4:24 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Das Property steht in der XML. Mit setProperty kannst Du nur Hibernate Properties setzen.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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