2011-03-28 71 views

回答

0

作爲一個例子,嘗試像這樣。

@GeneratedValue(strategy = IDENTITY) 
    @Column(name = "columnName", unique = true, nullable = false, insertable = false, updatable = false) 
    private Integer columnName;