I've been looking at various hibernate tutorials and samples, for their identity/primary key property, some use a Java primitive type, some uses the wrapper type, that is;
private int id;
vs
private Integer id;
Why and when would I use one over the other, for the entity key ?