Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Person {
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private Long id;
- private String name;
- private String surname;
- }
- Person person = new Person(null, "Roman", "Brzęścikiewicz");
- personRepository.save(person);
- id;name;surname
- 1;Roman;
- id;name;surname
- 1;Roman;Brzescikiewicz
- spring.datasource.url=jdbc:postgresql://localhost:5433/db
- spring.datasource.username=user
- spring.datasource.password=pass
- spring.datasource.driverClassName=org.postgresql.Driver
- spring.jpa.hibernate.ddl-auto=validate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement