0
的PostgreSQL 9.1存儲過程,休眠4.1。
堅持使用與收益的ID
如何使用存儲過程持久化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;
...
}
是否存儲過程只產生ID,或者它整個插入? – 2012-07-21 20:28:44