Skip to content

Instantly share code, notes, and snippets.

View SimonHarmonicMinor's full-sized avatar
👋

Semyon Kirekov SimonHarmonicMinor

👋
View GitHub Profile
public class Person {
public Person() {
System.out.println("I was created");
}
@PostConstruct
private void init() {
System.out.println("I was constructed");
}
}
@Entity
@Setter
@Getter
public class Book {
@Id
@GeneratedValue
private Long id;
private String name;
private String genre;
}