use of org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType in project hibernate-orm by hibernate.
the class EntityModeConverterTest method generateXml.
private JaxbHbmHibernateMapping generateXml(boolean includeEntityMode) throws Exception {
JaxbHbmHibernateMapping hm = new JaxbHbmHibernateMapping();
JaxbHbmRootEntityType clazz = new JaxbHbmRootEntityType();
JaxbHbmTuplizerType tuplizer = new JaxbHbmTuplizerType();
tuplizer.setClazz(DynamicMapEntityTuplizer.class.getCanonicalName());
if (includeEntityMode) {
tuplizer.setEntityMode(EntityMode.MAP);
}
clazz.getTuplizer().add(tuplizer);
JaxbHbmSimpleIdType id = new JaxbHbmSimpleIdType();
clazz.setId(id);
hm.getClazz().add(clazz);
return hm;
}
use of org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType in project hibernate-orm by hibernate.
the class GenerationTimingConverterTest method testMashallAttributeWithNullGenerationTiming.
@Test
public void testMashallAttributeWithNullGenerationTiming() throws Exception {
JaxbHbmHibernateMapping hm = new JaxbHbmHibernateMapping();
JaxbHbmRootEntityType clazz = new JaxbHbmRootEntityType();
JaxbHbmSimpleIdType id = new JaxbHbmSimpleIdType();
JaxbHbmBasicAttributeType att = new JaxbHbmBasicAttributeType();
att.setName("attributeName");
clazz.getAttributes().add(att);
clazz.setId(id);
hm.getClazz().add(clazz);
XmlBindingChecker.checkValidGeneration(hm);
}
Aggregations