/**
* Determines if a given annotation set contains annotations that correspond to ones that someone would expect to appear
* in a persistence.xml
*
* @param annotations
* @return
*/
protected boolean containsTypeLevelPersistenceAnnotation(Annotation[] annotations) {
for (Annotation annotation : annotations) {
if (annotation.getTypeName().equals(Entity.class.getName())
|| annotation.getTypeName().equals(Embeddable.class.getName())
|| annotation.getTypeName().equals(MappedSuperclass.class.getName())) {
return true;
}
}
return false;
}
EntityMarkerClassTransformer.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:blcdemo
作者:
评论列表
文章目录