I have been learning java spring hibernate MVC for 3 months and got pretty idea of that . But i have not understood what JCR means.
I mean for e.g in my simple webiste in spring MVC what part can be done in JCR
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JCR would be an alternative persistence mechanism used in place of JPA (Hibernate), which hides JDBC from your application. In theory, the Java classes you have in your model might remain the same as you have now. However, if any classes in your model came about only because you needed to model some lower-level data structures for JPA, then these classes might not be needed with JCR.
You’d need a good reason to replace an existing use of JPA with JCR. For example, you may have discovered that using JPA requires jumping through a lot of extra hoops and doing things you’d not really need to do.
Having said that, JCR certainly has some advantages and capabilities that are not otherwise found in JPA:
It all depends on whether these features are beneficial for your application.