/** * INTERNAL: * Return the class this key mapping maps or the descriptor for it * @return */ public Class getMapKeyTargetType(){ return getReferenceClass(); }
/** * INTERNAL: * Return the class this key mapping maps or the descriptor for it * @return */ public Class getMapKeyTargetType(){ return getReferenceClass(); }
/** * INTERNAL: * Return the class this key mapping maps or the descriptor for it * @return */ public Class getMapKeyTargetType(){ return getReferenceClass(); }
/** * INTERNAL: * Create a query key that links to the map key * @return */ public QueryKey createQueryKeyForMapKey(){ OneToOneQueryKey key = new OneToOneQueryKey(); key.setDescriptor(getReferenceDescriptor()); key.setReferenceClass(getReferenceClass()); key.setJoinCriteria(getAdditionalSelectionCriteriaForMapKey()); return key; }
/** * INTERNAL: * Create a query key that links to the map key * @return */ public QueryKey createQueryKeyForMapKey(){ OneToOneQueryKey key = new OneToOneQueryKey(); key.setDescriptor(getReferenceDescriptor()); key.setReferenceClass(getReferenceClass()); key.setJoinCriteria(getAdditionalSelectionCriteriaForMapKey()); return key; }
/** * INTERNAL: * Create a query key that links to the map key * @return */ public QueryKey createQueryKeyForMapKey(){ OneToOneQueryKey key = new OneToOneQueryKey(); key.setDescriptor(getReferenceDescriptor()); key.setReferenceClass(getReferenceClass()); key.setJoinCriteria(getAdditionalSelectionCriteriaForMapKey()); return key; }
ClassDescriptor referenceClassDescriptor = getClassDescriptor(mapping.getReferenceClass()); if (oneToOneMapping.getReferenceClass().equals(mapping.getDescriptor().getJavaClass())) { return oneToOneMapping;
public void initialize(AbstractSession session) throws DescriptorException { if (session.hasBroker()) { if (getReferenceClass() == null) { throw DescriptorException.referenceClassNotSpecified(this); session = session.getBroker().getSessionForClass(getReferenceClass());
public void initialize(AbstractSession session) throws DescriptorException { if (session.hasBroker()) { if (getReferenceClass() == null) { throw DescriptorException.referenceClassNotSpecified(this); session = session.getBroker().getSessionForClass(getReferenceClass());
if (SoftDelete.class.isAssignableFrom(oneToOneMapping.getReferenceClass())) { if (mapping.isManyToOneMapping()) { oneToOneMapping.setSoftDeletionForBatch(false);