Search in sources :

Example 1 with JaxbHbmBasicAttributeType

use of org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicAttributeType 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);
}
Also used : JaxbHbmSimpleIdType(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType) JaxbHbmRootEntityType(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmRootEntityType) JaxbHbmBasicAttributeType(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicAttributeType) JaxbHbmHibernateMapping(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping) Test(org.junit.Test)

Aggregations

JaxbHbmBasicAttributeType (org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicAttributeType)1 JaxbHbmHibernateMapping (org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping)1 JaxbHbmRootEntityType (org.hibernate.boot.jaxb.hbm.spi.JaxbHbmRootEntityType)1 JaxbHbmSimpleIdType (org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType)1 Test (org.junit.Test)1