本文整理汇总了Java中org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord类的典型用法代码示例。如果您正苦于以下问题:Java RooJpaActiveRecord类的具体用法?Java RooJpaActiveRecord怎么用?Java RooJpaActiveRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RooJpaActiveRecord类属于org.springframework.roo.addon.jpa.activerecord包,在下文中一共展示了RooJpaActiveRecord类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addOccAll
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord; //导入依赖的package包/类
public void addOccAll(String fieldName, String digestMethod) {
addGvNIXAnnotationsDependecy();
// Look for classes annotated with @RooJpaActiveRecord
for (JavaType type : typeLocationService
.findTypesWithAnnotation(new JavaType(RooJpaActiveRecord.class
.getName()))) {
doAddOccToEntity(type, fieldName, digestMethod, false);
}
}
开发者ID:gvSIGAssociation,项目名称:gvnix1,代码行数:11,代码来源:OCCChecksumOperationsImpl.java
示例2: generateAll
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord; //导入依赖的package包/类
public void generateAll(JavaPackage javaPackage) {
Set<ClassOrInterfaceTypeDetails> cids = typeLocationService
.findClassesOrInterfaceDetailsWithAnnotation(new JavaType(
RooJpaActiveRecord.class.getName()));
for (ClassOrInterfaceTypeDetails cid : cids) {
if (Modifier.isAbstract(cid.getModifier())) {
continue;
}
JavaType javaType = cid.getName();
LogicalPath path = PhysicalTypeIdentifier.getPath(cid
.getDeclaredByMetadataId());
JpaActiveRecordMetadata entityMetadata = (JpaActiveRecordMetadata) metadataService
.get(JpaActiveRecordMetadata.createIdentifier(javaType,
path));
if (entityMetadata == null || (!entityMetadata.isValid())) {
continue;
}
// Check to see if this entity metadata has a flex scaffold metadata
// listening to it
String dwnstrmFlexScaffMDataId = FlexScaffoldMetadata
.createIdentifier(javaType, path);
if (dependencyRegistry.getDownstream(entityMetadata.getId())
.contains(dwnstrmFlexScaffMDataId)) {
// There is already Flex scaffolding this entity
continue;
}
// to get here, there is no listening service, so add one
JavaType service = new JavaType(
javaPackage.getFullyQualifiedPackageName() + "."
+ javaType.getSimpleTypeName() + "Service");
createRemotingDestination(service, javaType);
}
}
开发者ID:gvSIGAssociation,项目名称:gvnix1,代码行数:42,代码来源:FlexOperationsImpl.java
注:本文中的org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论