did you use autoincrement for your ids?
/**
* Getter for Id.
* @return Id
* @hibernate.id column="id" generator-class="increment" unsaved-
value="null"
*/
public Long getId() {
return id;
}
On Jan 12, 2007, at 4:31 PM, Stefan Malär wrot
it seems so! so i did create new resident but, but auto inkrement
gives the new resident id=2 not 1! i checked this.. so there is some
inconsistency in the tutorial and the way it really works i think!?
isn't resident/person createt in test1 with id=1 removed after the
rollback of the test
well now i get another error :-(
tests 1 and 3 run successful , but 2 ( testSaveResident in my case)
fails when retrieving object with identifier 1
the class is called Resident and getResident() works in test 1 and 3,
but fails in test 2!
OUTPUT:
test-dao:
[echo] Testing dao...
[
thank you! it seems to work now!
the tests are running!
bernd
On Jan 5, 2007, at 6:01 PM, Matt Raible wrote:
I would try chopping off the CN_ part of your classname and just using
AccountInformation instead.
Matt
On 1/5/07, cosmonate cosmo <[EMAIL PROTECTED]> wrote:
thank for the fast answers