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;<
You can specify your primary key as a primitive or a wrapper. And since usually the avantages of an Integer aren't needed, it's best to keep it simple with an int.