Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/persister
In directory sc8-pr-cvs1:/tmp/cvs-serv9926/persister
Modified Files:
MultiTableEntityPersister.java
Log Message:
fixed a bug parsing expressions like foo.bar.id for normalized table mappings
Index: MultiTableEntityPersister.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/persister/MultiTableEntityPersister.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** MultiTableEntityPersister.java 27 Nov 2002 16:42:55 -0000 1.41
--- MultiTableEntityPersister.java 15 Dec 2002 04:54:41 -0000 1.42
***************
*** 115,122 ****
--- 115,124 ----
EntityType etype = (EntityType) type;
Type idType = factory.getIdentifierType( etype.getPersistentClass() );
+ Object table = tableNumberByPropertyPath.get(path);
String idpath = path + '.' + PathExpressionParser.ENTITY_ID;
mods.put(idpath, idType);
columnNamesByPropertyPath.put(idpath, columns);
+ tableNumberByPropertyPath.put(idpath, table);
if ( idType.isComponentType() ) {
AbstractComponentType actype = (AbstractComponentType) idType;
***************
*** 125,128 ****
--- 127,131 ----
String subidpath = idpath + '.' + props[i];
columnNamesByPropertyPath.put( subidpath, new String[] { columns[i] } );
+ tableNumberByPropertyPath.put(subidpath, table);
mods.put( subidpath, actype.getSubtypes()[i] );
}
|