@Test public void shouldBuildMapForeignKeyNames() { assertEquals("map_fk_TestEntity_mapField_3", KeyNames.mapForeignKeyName("TestEntity", 3L, "mapField", EntityType.STANDARD)); assertEquals("map_fk_TestEntity__History_mapField_3", KeyNames.mapForeignKeyName("TestEntity", 3L, "mapField", EntityType.HISTORY)); assertEquals("map_fk_TestEntity__Trash_mapField_3", KeyNames.mapForeignKeyName("TestEntity", 3L, "mapField", EntityType.TRASH)); }
public static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType) { return join("map_fk", entityType.getName(entityName), fieldName, entityId); }
KeyNames { public static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType) { return join("map_fk", entityType.getName(entityName), fieldName, entityId); } }
KeyNames { public static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType) { return join("map_fk", entityType.getName(entityName), fieldName, entityId); } private  KeyNames(); }
KeyNames { public static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType) { return join("map_fk", entityType.getName(entityName), fieldName, entityId); } private  KeyNames(); static String lookupIndexKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String foreignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String cbForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String uniqueKeyName(String entityName, String fieldName); }
KeyNames { public static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType) { return join("map_fk", entityType.getName(entityName), fieldName, entityId); } private  KeyNames(); static String lookupIndexKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String foreignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String mapForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String cbForeignKeyName(String entityName, Long entityId, String fieldName, EntityType entityType); static String uniqueKeyName(String entityName, String fieldName);  }