55

如何在Spring Boot中使用Hibernate Natural ID-萤火的萤的博客

 5 years ago
source link: http://blog.51cto.com/14009535/2349782
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
首先,让我们关注所需类的实现。完成所有这些后,我们将能够为具有自然ID的实体提供存储库。用自然ID编写实体让我们考虑以下具有自动生成ID和自然ID(code列)的实体。这只是一个使用一个自然ID的典型实体@NaturalId:@实体public  class  Product  implements  Serializ

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK