This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Is there any significant improvement in SessionFactory Startup in using annotations over mappings?
I know there are a lot of factors that effect startup time such as complexity and length of the mapping, but because hibernate doesn't have to read in XML to map with annotations, I would guess that annotations are quicker overall.
Is this a false statement? Im trying to do some tests to find out, but because of WTP 0.7 and HibTools, im having difficulty right now. Just thought I'd ask the community.
I don't think there is much of a difference in speed. I think it is more of whether you want to manually make seperate XML mapping files, or include that with Annotations. Annotations use Inspection of the Java classes to make Objects that get created at startup, where of course XML uses an IO Reader to load the XML and create the objects.