标签:style color io os 使用 ar java for strong
示例
/**
* 抽象实体类,可作为所有领域实体的基类。
*
* @author yang
*
*/
@MappedSuperclass
public abstract class BaseEntity implements Entity {
/**
* 获取仓储对象实例。如果尚未拥有仓储实例则通过InstanceFactory向IoC容器获取一个。
* @return 仓储对象实例
*/
public static EntityRepository getRepository() {
if (repository == null) {
repository =
InstanceFactory.getInstance(EntityRepository.class);
}
return repository;
}
}
标签:style color io os 使用 ar java for strong
原文地址:http://my.oschina.net/xiaokaceng/blog/325810