use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.
the class OOMParserStereotypesTest method testStereotypeKeyConcept.
/**
* Test du stereotype keyConcept
*/
@Test
public void testStereotypeKeyConcept() {
final DtDefinition dtDefinitionCommand = getDtDefinition("DT_COMMAND");
Assert.assertNotNull(dtDefinitionCommand);
Assert.assertEquals(DtStereotype.KeyConcept, dtDefinitionCommand.getStereotype());
}
use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.
the class OOMParserStereotypesTest method testStereotypeMasterData.
/**
* Test du stereotype MasterData
*/
@Test
public void testStereotypeMasterData() {
final DtDefinition dtDefinitionCity = getDtDefinition("DT_CITY");
Assert.assertNotNull(dtDefinitionCity);
Assert.assertEquals(DtStereotype.MasterData, dtDefinitionCity.getStereotype());
final DtDefinition dtDefinitionCommandType = getDtDefinition("DT_COMMAND_TYPE");
Assert.assertNotNull(dtDefinitionCommandType);
Assert.assertEquals(DtStereotype.StaticMasterData, dtDefinitionCommandType.getStereotype());
}
use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.
the class StoreManagerInitializer method init.
/**
* {@inheritDoc}
*/
@Override
public void init() {
final DtDefinition dtDefinition = DtObjectUtil.findDtDefinition(Car.class);
storeManager.getDataStoreConfig().registerCacheable(dtDefinition, 3600, true, true);
}
use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.
the class EAXmiTestParserIdentifiers method testIdentifiersVsPrimaryKey.
@Test
public void testIdentifiersVsPrimaryKey() {
final DtDefinition loginDefinition = getDtDefinition("DT_LOGIN");
Assert.assertTrue(loginDefinition.getIdField().isPresent());
}
use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.
the class JavaParserStereotypesTest method testStereotypeMasterData.
/**
* Test du stereotype MasterData
*/
@Test
public void testStereotypeMasterData() {
final DtDefinition dtDefinitionCity = getDtDefinition("DT_CITY");
Assert.assertNotNull(dtDefinitionCity);
Assert.assertEquals(DtStereotype.MasterData, dtDefinitionCity.getStereotype());
final DtDefinition dtDefinitionCommandType = getDtDefinition("DT_COMMAND_TYPE");
Assert.assertNotNull(dtDefinitionCommandType);
Assert.assertEquals(DtStereotype.StaticMasterData, dtDefinitionCommandType.getStereotype());
}
Aggregations