2017-05-22 29 views

回答

0

我認爲唯一的方法是使用子查詢

@Formula("(select count+1 as new_count from customer_table ct where ct.id=current_id)") 
private int count; 

其中current_id是實體的id列

相關問題