コード例 #1
0
 /**
  * Get the attribute that corresponds to the version attribute declared by the entity or mapped
  * superclass.
  *
  * @return the declared version attribute.
  */
 public SingularAttributeDescriptor getDeclaredVersion() {
   final AttributeDescriptor version = getVersion();
   return version.getDeclaringTypeDescriptor() == this
       ? (SingularAttributeDescriptor) version
       : null;
 }
コード例 #2
0
 /**
  * Get the attribute that corresponds to the id attribute declared by the entity or mapped
  * superclass.
  *
  * @return the declared id attribute.
  */
 public SingularAttributeDescriptor getDeclaredId() {
   final AttributeDescriptor id = getId();
   return id.getDeclaringTypeDescriptor() == this ? (SingularAttributeDescriptor) id : null;
 }