@Entity
public class Employee {
@GeneratedValue
@Id
private String firstName;
private String lastName;
private double salary;
private long id
Pytanie
dlaczego nie deneruje mi w bazie id (w ogóle się nie kompiluje) wyskakuje mi cos takiego
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: domain.Employee
Innej adnotacji użyc czy co ?