SORRY 應該我表達得唔清楚
我想搵個code generator 係可以auto gen entity classes
e.g.
有個DAO 係return
name + salary + year of exp
咁我要handle 依個result就要寫一個entity class去map 返
@Entity
@Getter
@Setter
public Class Employee{
private String name;
private long salary;
private long yr_exp;
}
個code generator 係可以自動gen 依個class
google過 hibernate tools係可以做到依樣野
但佢淨係可以convert from tables to entity class
而我個project全部sql operation 都係call stored procedure
問題係我有百幾個 procedure 要做 entity classes 既MAPPING
人手寫好痴線(有個ON9 同事諗住咁樣做
)
有野樣叫JOOQ好似都做到 但用sql server 要比錢version先做到