Java Examples for org.hibernate.jpamodelgen.xml.jaxb.AccessType
The following java examples will help you to understand the usage of org.hibernate.jpamodelgen.xml.jaxb.AccessType. These source code samples are taken from different open source projects.
Example 1
Project: hibernate-orm-master File: XmlMetaEntity.java View source code |
private ElementKind getElementKind(org.hibernate.jpamodelgen.xml.jaxb.AccessType accessType) { // if no explicit access type was specified in xml we use the entity access type if (accessType == null) { return TypeUtils.getElementKindForAccessType(accessTypeInfo.getAccessType()); } if (org.hibernate.jpamodelgen.xml.jaxb.AccessType.FIELD.equals(accessType)) { return ElementKind.FIELD; } else { return ElementKind.METHOD; } }
Example 2
Project: hibernate-metamodelgen-master File: XmlMetaEntity.java View source code |
private ElementKind getElementKind(org.hibernate.jpamodelgen.xml.jaxb.AccessType accessType) { // if no explicit access type was specified in xml we use the entity access type if (accessType == null) { return TypeUtils.getElementKindForAccessType(accessTypeInfo.getAccessType()); } if (org.hibernate.jpamodelgen.xml.jaxb.AccessType.FIELD.equals(accessType)) { return ElementKind.FIELD; } else { return ElementKind.METHOD; } }