What's difference between primitive and wrapper class in JPA (Hibernate) column mappings?
- by Michael Lu
For instance, there’s a integer column in a database table.
Then in java model, it can be mapped both as primitive int and Integer.
My question is what's difference between the int and Integer in this case? And performance concern?
Thanks!