From: <leg...@at...> - 2003-11-27 23:35:16
|
The following issue has been updated: Updater: Max Rydahl Andersen (mailto:xa...@xa...) Date: Thu, 27 Nov 2003 5:35 PM Comment: I don't know if it was possible because of my current sickness - but somehow I succeded in making persisters (at least EntityPersister and NormalizedEntityPersister) generate short aliases for id's and discriminators! The patch basically just fill in the blanks of the current impl. There were no aliases generated for ids and discriminators as there are for all other properties - now there are. I don't feel like committing this one before someone else have verified the sanity of it even though FooBarTest still runs fine ;) Changes: Attachment changed to aliasidstuff.patch --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-244&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-244 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-244 Summary: Hibernate creates alias identifiers that are too long Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: Mark Woon Created: Mon, 11 Aug 2003 1:17 AM Updated: Thu, 27 Nov 2003 5:35 PM Environment: Oracle 9.0.2. Description: After switching to Hibernate 2 I find that Hibernate is still creating alias identifiers that are too long. The HQL query that's causing it: select freqInSs, freqInRae, freqInSs.allele from DbVariantPosition as varPos, DbVariantAllele as varAl, DbAlleleFrequencyInSampleSet as freqInSs, DbAlleleFrequencyInRaceAndEthnicity as freqInRae where varPos.goldenPathPosition = ? and varPos.id != ? order by freqInSs, freqInRae The SQL query that gets generated: select dballele2_.alleleFreqInSampleSetsId as alleleFreqInSampleSetsId0_, dballele3_.alleleFreqInSSRaceEthnicityId as alleleFreqInSSRaceEthnicityId1_, dballele2_.variantPositionId as variantP2_0_, dballele2_.sampleSetId as sampleSe3_0_, dballele2_.allele as allele0_, dballele2_.totalObserved as totalObs5_0_, dballele2_.frequency as frequency0_, dballele3_.alleleFreqInSampleSetId as alleleFr2_1_, dballele3_.racialClassId as racialCl3_1_, dballele3_.ethnicClassId as ethnicCl4_1_, dballele3_.totalObserved as totalObs5_1_, dballele3_.frequency as frequency1_, dballele2_.alleleFreqInSampleSetsId as x0_0_, dballele3_.alleleFreqInSSRaceEthnicityId as x1_0_, dballele2_.allele as x2_0_ from VariantPositions dbvarian0_, VariantAlleles dbvarian1_, AlleleFreqInSampleSets dballele2_, AlleleFreqInSSRaceEthnicity dballele3_ where (dbvarian0_.goldenPathPosition=? )and(dbvarian0_.variantPositionId!=? ) order by dballele2_.alleleFreqInSampleSetsId , dballele3_.alleleFreqInSSRaceEthnicityId The offending alias identifier is "alleleFreqInSSRaceEthnicityId1_" which is 31 characters long -- one more that Oracle's max identifier length. Is this a known problem? I can attach my mappings if it will help... --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |