Author: smarlow(a)redhat.com
Date: 2010-01-04 22:18:23 -0500 (Mon, 04 Jan 2010)
New Revision: 18406
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/namingstrategy/NamingStrategyTest.java
Log:
HHH-4753 Default table name for @CollectionTable is not inferred correctly according to
spec requirement
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/namingstrategy/NamingStrategyTest.java
===================================================================
---
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/namingstrategy/NamingStrategyTest.java 2010-01-05
03:16:05 UTC (rev 18405)
+++
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/namingstrategy/NamingStrategyTest.java 2010-01-05
03:18:23 UTC (rev 18406)
@@ -56,7 +56,7 @@
foundIt = true;
}
// make sure we use A_ADDRESS instead of AEC_address
- assertFalse("got table name mapped to: AEC_address which violates JPA-2 spec
section 11.1.8
([OWNING_ENTITY_NAME]_[COLLECTION_ATTRIBUTE_NAME])",table.getName().equalsIgnoreCase("AEC_address"));
+ assertFalse("got table name mapped to: AEC_address (should be A_ADDRESS) which
violates JPA-2 spec section 11.1.8
([OWNING_ENTITY_NAME]_[COLLECTION_ATTRIBUTE_NAME])",table.getName().equalsIgnoreCase("AEC_address"));
}
assertTrue("table not mapped to A_ADDRESS which violates JPA-2 spec section
11.1.8",foundIt);
}