Keep camel-case from database identifiers
Here is a related unit test :
@Test public void testGetPropertyName() { EntityType entityModel = new EntityType("Q", Types.OBJECT); assertEquals("whileCol", namingStrategy.getPropertyName("while", "Q", entityModel)); assertEquals("name", namingStrategy.getPropertyName("name", "Q", entityModel)); assertEquals("userId", namingStrategy.getPropertyName("user_id", "Q", entityModel)); assertEquals("accountEventId", namingStrategy.getPropertyName("accountEvent_id", "Q", entityModel)); }
Fixed in 1.9.3
Bug watches keep track of this bug in other bug trackers.
Here is a related unit test :
@Test Name() {
assertEquals( "whileCol" , namingStrategy. getPropertyName ("while" , "Q", entityModel));
assertEquals( "name", namingStrategy. getPropertyName ("name" , "Q", entityModel));
assertEquals( "userId" , namingStrategy. getPropertyName ("user_ id", "Q", entityModel));
assertEquals( "accountEventId ", namingStrategy. getPropertyName ("accountEvent_ id", "Q", entityModel));
public void testGetProperty
EntityType entityModel = new EntityType("Q", Types.OBJECT);
}