Hi,
I believe that at the db-level, perf experts tend to recommend for the smallest integer type available, so as to take up the least space. However, that argument wouldn't make much sense at object-level. I don't see any reason why there should be any difference in performace as well. I think it is more of a convention.
I haven' t yet looked in to the hibernate code related to this, but I guess internally they would be using Long type universally.
Then again, that's just my 2 cents. ;-)
_________________ Rgds,
Vikas.
"Quidquid latine dictum sit, altum sonatur". Whatever is said in Latin, sounds profound
|