Hi friends, can u explain Transparent Persistence in
hibernate with sample code.
Answers were Sorted based on User's Feedback
Answer / nelson
Transparent means seperation of concerns between peristence
classes and the way they are persisted. Domain classes need
not know any details about how they are getting persisted.
An example would be the DAO pattern which provide
transparent persistence.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / ram nidadavolu
Types of Hibernate instance states:-
Transient- The instance is not associated with any
persistence context.
persistence- The instance is associated with a persistence
context.
Detached-The instance is associated with a persistence
context which has been closed- currently not associated.
| Is This Answer Correct ? | 3 Yes | 4 No |
In DAO we are writting sql queries , how it is possible with creating and closing database connections.
Who is java developer?
What is java full stack developer?
What are container services?
What is the build file?
What is Document Object Model?
What is j2ee product provider?
Is java a high level language?
What is j2ee architecture?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
What is java netbeans?
Explain j2ee architecture.