I've finally had a chance to followup on this and view the generated sql. It's different. But I don't know why?? Can anyone help me figure out an explanation for this.
On 3.1.3 the generated sql is:
Code:
[junit] 11:24:35,847 DEBUG SQL:346 -
select person0_.PersonID as PersonID38_,
person0_.cardID as cardID38_,
person0_.cardIssued as cardIssued38_,
person0_.lastModified as lastModi4_38_,
person0_.firstName as firstName38_,
person0_.middleName as middleName38_,
person0_.lastName as lastName38_,
person0_.suffix as suffix38_,
person0_.title as title38_,
person0_.alternateName as alterna10_38_,
person0_.phoneticSpelling as phoneti11_38_,
person0_.demographicID as demogra12_38_,
person0_.AlertInformationID as AlertIn13_38_,
person0_.occupationID as occupat14_38_,
person0_.socialhistoryID as socialh15_38_,
person0_.growthID as growthID38_ from person person0_,
occupation occupation1_,
organization organizati2_ where occupation1_.organizationID=organizati2_.OrganizationID and person0_.occupationID=occupation1_.occupationID and person0_.firstName=? and person0_.lastName=? and organizati2_.organizationName=?
[junit] ------------- ---------------- ---------------
complete:
But on 3.2.4.sp1 the generated sql is this:
Code:
[junit] 11:47:23,903 DEBUG SQL:401 -
select person0_.PersonID as PersonID38_,
person0_.cardID as cardID38_,
person0_.cardIssued as cardIssued38_,
person0_.lastModified as lastModi4_38_,
person0_.firstName as firstName38_,
person0_.middleName as middleName38_,
person0_.lastName as lastName38_,
person0_.suffix as suffix38_,
person0_.title as title38_,
person0_.alternateName as alterna10_38_,
person0_.phoneticSpelling as phoneti11_38_,
person0_.demographicID as demogra12_38_,
person0_.AlertInformationID as AlertIn13_38_,
person0_.occupationID as occupat14_38_,
person0_.socialhistoryID as socialh15_38_,
person0_.growthID as growthID38_ from person person0_,
occupation occupation1_,
organization organizati2_ where person0_.occupationID=occupation1_.occupationID and
occupation1_.organizationID=organizati2_.OrganizationID and
person0_.firstName=? and person0_.lastName=? and organizati2_.organizationName=?
[junit] 11:47:23,934 DEBUG SQL:401 - update person set cardID=?, cardIssued=?, lastModified=?, firstName=?, middleName=?, lastName=?, suffix=?, title=?, alternateName=?, phoneticSpelling=?, demographicID=?, AlertInformationID=?, occupationID=?, socialhistoryID=?, growthID=? where PersonID=?
[junit] ------------- ---------------- ---------------
[junit] Testcase: testGetPersonRecordsByNameAndOrganization(com.chisq.common.dao.PersonDAOTest): FAILED
[junit] expected:<1> but was:<0>
[junit] junit.framework.AssertionFailedError: expected:<1> but was:<0>
[junit] at com.chisq.common.dao.PersonDAOTest.testGetPersonRecordsByNameAndOrganization(PersonDAOTest.java:91)
BUILD FAILED
Why would it be different? All I'm trying to do is to upgrade hibernate versions.