Hi,
I'm designing a domain model for wicket/spring/hibernate application (a research repository). I have the following domain entity:
Publication
-id: Long
-title: String
-year: short
-month: byte
I've been reading in the forum and it was mentioned that using primitive types is *less* efficient than using their wrappers (eg Short, Byte) in hibernate as accessing them using reflection is slower. It's also mentioned in several online blogs and articles (one example is
http://blog.vinodsingh.com/2008/04/prim ... jects.html) that primitive wrappers consume more memory. Does that mean that using primitive types is slower in hibernate but faster in spring/wicket (i'm not sure about spring as it uses reflection too.)? And the opposite for primitive wrappers?
Note: I know that this probably isn't an issue for enterprise applications, but i would like to know for educational purposes.