tag:blogger.com,1999:blog-34374221.post8453639344461037627..comments2024-03-03T07:35:45.002+01:00Comments on geekAbyte: Configuring Hibernate in Spring Framework.dadehttp://www.blogger.com/profile/01934137473204182228noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-34374221.post-34579136952319021042015-09-17T18:22:58.026+02:002015-09-17T18:22:58.026+02:00@Nandom
Any reason why you using Hibernate and Spr...@Nandom<br />Any reason why you using Hibernate and Spring this way instead of just using JPA as implemented by Spring?<br /><br />That way you can have spring configure and provide you with the entity manager which you can then use to persist data....<br /><br />Also have you checked out Spring Data JPA? http://projects.spring.io/spring-data-jpa/dadehttps://www.blogger.com/profile/01934137473204182228noreply@blogger.comtag:blogger.com,1999:blog-34374221.post-5698675451709972852015-09-17T18:16:27.918+02:002015-09-17T18:16:27.918+02:00Hi, Its nice to meet with you after googling on a ...Hi, Its nice to meet with you after googling on a Solution on Spring Hibernate. I use EJB3 a lot and I would like to use Spring Hibernate for a particular project. The problem I am facing is the too much of code I am writing on Spring. For instance, I have to create the interface, then implement the interface in a class with the @Repository annotation, then I will have to create the service interface and then implement it in the class with the @Service annotation. Is there a way to write my Spring without those interfaces? i.e to only have one class that will autowire the SessionFactory and then call the class to persist my data to the data base? pls help me, I really need your helpNandomhttps://www.blogger.com/profile/13098677891724044659noreply@blogger.com