private static Cache buildCacheMock(String region, MetadataBuildingContext context) { return new LocalCacheAnnotationStub( region, determineCacheConcurrencyStrategy( context ) ); }
public ClassPropertyHolder( PersistentClass persistentClass, XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<XClass, InheritanceState> inheritanceStatePerClass) { this( persistentClass, entityXClass, entityBinder.getSecondaryTables(), context, inheritanceStatePerClass ); this.entityBinder = entityBinder; }
public void setPropertyAccessType(AccessType propertyAccessor) { this.propertyAccessType = getExplicitAccessType( annotatedClass ); // only set the access type if there is no explicit access type for this class if( this.propertyAccessType == null ) { this.propertyAccessType = propertyAccessor; } }
public EntityBinder( Entity ejb3Ann, org.hibernate.annotations.Entity hibAnn, XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context) { this.context = context; this.persistentClass = persistentClass; this.annotatedClass = annotatedClass; bindEjb3Annotation( ejb3Ann ); bindHibernateAnnotation( hibAnn ); }
public Join addJoin(JoinTable joinTableAnn, boolean noDelayInPkColumnCreation) { Join join = entityBinder.addJoin( joinTableAnn, this, noDelayInPkColumnCreation ); this.joins = entityBinder.getSecondaryTables(); return join; }
public Property makePropertyAndBind() { return bind( makeProperty() ); }
public Property makePropertyValueAndBind() { return bind( makePropertyAndValue() ); }
public static void bindQueries(NamedQueries queriesAnn, MetadataBuildingContext context, boolean isDefault) { if ( queriesAnn == null ) { return; } for (NamedQuery q : queriesAnn.value()) { bindQuery( q, context, isDefault ); } }
@Override public void setSqlOrderBy(OrderBy orderByAnn) { if ( orderByAnn != null ) { super.setSqlOrderBy( orderByAnn ); } } }
public void doSecondPass(Map persistentClasses) throws MappingException { entityBinder.finalSecondaryTableBinding( propertyHolder ); } }
public Join addJoin(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) { return addJoin( null, joinTable, holder, noDelayInPkColumnCreation ); }
public void doSecondPass(Map persistentClasses) throws MappingException { binder.fillSimpleValue(); } }
public void setUniqueConstraints(UniqueConstraint[] uniqueConstraints) { this.uniqueConstraints = TableBinder.buildUniqueConstraintHolders( uniqueConstraints ); }
public void processComplementaryTableDefinitions(Tables tables) { if ( tables == null ) return; for (org.hibernate.annotations.Table table : tables.value()) { processComplementaryTableDefinitions( table ); } }
private String getCondition(Filter filter) { //set filtering String name = filter.name(); String cond = filter.condition(); return getCondition( cond, name ); }
void postProcess(PersistentClass persistenceClass, EntityBinder entityBinder) { //make sure we run elements to process getElementsToProcess(); addMappedSuperClassInMetadata( persistenceClass ); entityBinder.setPropertyAccessType( accessType ); }
private static void bindNamedStoredProcedureQuery(NamedStoredProcedureQuery annotation, MetadataBuildingContext context, boolean isDefault) { if ( annotation != null ) { QueryBinder.bindNamedStoredProcedureQuery( annotation, context, isDefault ); } }
public void setJpaIndex(javax.persistence.Index[] jpaIndex){ this.jpaIndexHolders = buildJpaIndexHolder( jpaIndex ); }
public static void bindQueries( org.hibernate.annotations.NamedQueries queriesAnn, MetadataBuildingContext context) { if ( queriesAnn == null ) { return; } for (org.hibernate.annotations.NamedQuery q : queriesAnn.value()) { bindQuery( q, context ); } }
public AccessType getPropertyAccessor(XAnnotatedElement element) { AccessType accessType = getExplicitAccessType( element ); if ( accessType == null ) { accessType = propertyAccessType; } return accessType; }