Home Spring GeneratedValue annotation usage
Reply: 0

Spring GeneratedValue annotation usage

user306 Published in April 22, 2018, 12:33 am

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.300036 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO