I was about to start writing a program in Java which includes hibernate.
I am confused which should I choose between Annotations and XML Configuration.
I personally like XML configuration because I have been using this technique for sometime.
But I had one doubt: Is annotation faster than XML configuration in the scale of time taken to execute the program?
I personally think that if I use XML, then JVM would have to parse the file and then validate it as well. This would take some time. While, in case of annotations, the container will directly start performing the operations using the JARs available.
Can someone provide me with a clearer understanding on this.
Thanks in advance.