Home Spring GeneratedValue annotation usage
Reply: 0

Spring GeneratedValue annotation usage

user306 Published in July 19, 2018, 3:15 pm

Let's say that I have a Car entity:

public class Car {
      private Integer id;

How does spring know what value to autoincrement when I add a new object to the database?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.644341 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO