code: static PersistentAttributeType getPersistentAttributeType(Field member)
      {
          PersistentAttributeType attributeType = PersistentAttributeType.BASIC;
          if (member.isAnnotationPresent(ElementCollection.class))
          {
              attributeType = PersistentAttributeType.ELEMENT_COLLECTION;
          }
          else if (member.isAnnotationPresent(OneToMany.class))
          {
              attributeType = PersistentAttributeType.ONE_TO_MANY;
          }
          else if (member.isAnnotationPresent(ManyToMany.class))
          {
              attributeType = PersistentAttributeType.MANY_TO_MANY;
          }
          else if (member.isAnnotationPresent(ManyToOne.class))
          {
              attributeType = PersistentAttributeType.MANY_TO_ONE;
          }
          else if (member.isAnnotationPresent(OneToOne.class))
          {
              attributeType = PersistentAttributeType.ONE_TO_ONE;
          }
          else if (member.isAnnotationPresent(Embedded.class))
          {
              attributeType = PersistentAttributeType.EMBEDDED;
          }
  
          return attributeType;
  
      }
docs: Gets the persistent attribute type.
  
  @param member
  the member
  @return the persistent attribute type