Class JdoPropertyUtils

    • Method Detail

      • getPrimaryKeyPropertyFor

        public static org.apache.causeway.core.metamodel.spec.feature.OneToOneAssociation getPrimaryKeyPropertyFor​(org.apache.causeway.core.metamodel.spec.ObjectSpecification objectSpec)
        Searches for the property annotated with PrimaryKey.

        Returns the OneToOneAssociation if there is precisely one; else null.

        See Also:
        JdoPrimaryKeyPropertyPredicate
      • hasPrimaryKeyProperty

        public static boolean hasPrimaryKeyProperty​(org.apache.causeway.core.metamodel.spec.ObjectSpecification objectSpec)