-->
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: org.hibernate.test.legacy.CustomPersister
PostPosted: Mon Jun 19, 2006 12:19 am 
Newbie

Joined: Mon Jun 19, 2006 12:16 am
Posts: 2
Does anybody know how to execute this code?
I am trying to write my own Persister and cannot figure out how to run this example without specifying a JDBC connection.

It is not executed as part of the junit tests either :-(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 3:53 am 
Regular
Regular

Joined: Tue May 16, 2006 3:32 am
Posts: 117
The test case for this is MasterDetailTest.testCustomPersister() (same package). See Custom.hbm.xml also. I've been able to run this test case successfully. By default it connects to HSQLDB, creates any required table, runs the tests and then drops the tables. Just make sure you have hsqldb.jar in your classpath.


MasterDetailTest.testCustomPersister() does not really need any tables. I've not tried it, but you could also run by adding the following code in MasterDetailTest.

/**
* @see org.hibernate.test.TestCase#recreateSchema()
*/
protected boolean recreateSchema() {
return false;
}

However this would cause other test cases in MasterDetailTest to fail.


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.