标签:tar log bsp val 查询 text 数据库 get rri
JAVA中使用JPQL
private long id; @Id @GeneratedValue(generator="_native") @GenericGenerator(name="_native",strategy="native") public long getId() { return id; }
也有一种这样的
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Transactional(readOnly=true,propagation=Propagation.NOT_SUPPORTED) @Override public List<WeiBo> findWeiBoList(int pageSize, int pageNo) { ... }
@Lob @Column(columnDefinition="TEXT") public String getContent() { return content; }
标签:tar log bsp val 查询 text 数据库 get rri
原文地址:http://www.cnblogs.com/acm-bingzi/p/jpqlAnnotation.html