Class ToOne


  • public class ToOne
    extends java.lang.Object
    To-one relationship from a source entity to one (or zero) target entity.
    • Constructor Detail

      • ToOne

        public ToOne​(Schema schema,
                     Entity sourceEntity,
                     Entity targetEntity,
                     Property[] fkProperties,
                     boolean useFkProperty)
    • Method Detail

      • getSourceEntity

        public Entity getSourceEntity()
      • getTargetEntity

        public Entity getTargetEntity()
      • getFkProperties

        public Property[] getFkProperties()
      • getResolvedKeyJavaType

        public java.lang.String[] getResolvedKeyJavaType()
      • getResolvedKeyUseEquals

        public boolean[] getResolvedKeyUseEquals()
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the relation, which is used as the property name in the entity (the source entity owning the to-many relationship).
      • isUseFkProperty

        public boolean isUseFkProperty()
      • checkUseEquals

        protected boolean checkUseEquals​(PropertyType propertyType)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object