/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }