Hey, guys! I’m still issued by that on Hibernate 5.4.10.Final. I’ve had an
and implementation
public class AbstractNumericId extends HasId<Long> {
@Id
private long id;
@Override
public Long getId() {
return id;
}
}
But when I load entity via session.load() and call to entity.getId(), it still makes a request to database
var entity = session.load(cls, id);
entity.getId();
The workaround for this is to declare id like this
|