[英]Persist using stored procedure with return id
PostgreSQL 9.1,Hibernate 4.1。
如何使用存儲過程持久化PropertyTypeEntity(返回ID中的問題。GenerationType.IDENTITY)
不可能嗎
@Table(name = "property_types", schema = "public", catalog = "")
@Entity
public class PropertyTypeEntity implements IEntity<Long> {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
...
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.