performance of pagination methods?
Hi, I would just like to know what happens behind the scenes when a method like Page<T> findAll(Pageable pageable) gets called? if hibernate is used ... in the end what kind of sql gets produced?...
View ArticleData Jpa how to make Eager fetch works
Hi all, I'm trying to do a very simple task. I've 2 entities, Account and Customer with a OneToOne relation, and an AccountRepository, I want to load, in a web page, a paged list of Accounts using...
View ArticleQueries Keep Running on MSSQL Server
I am running a Spring 3.2 MVC application with a Tomcat 7.0.37 connection pool (not DBCP, the new one from tomcat-jdbc) to a MSSQL Server 2008 with the jTDS driver. The Spring app uses Hibernate 4.2...
View ArticleSpring 3 NPE with LazyConnectionDataSourceProxy autoCommit
Hi All, I'm not sure this belongs in the Spring Data forum, but I didn't see any other forum that it fit in. I'm using Spring 3 with JPA and I'm seeing an intermittent issue in my web application. I...
View ArticleSpring Data JPA Problm PLz Solve
HI Guyss.... I want to do this without using Mave I m getting this error at this line <jpa:repositories base-package="com.qatar.capacity.Repository"/> error ------Multiple annotations found at...
View Articlejdbc conncetion
Hi All , how to connect jdbc with Spring RestFul. Thanks and Regards, Ummer
View ArticleMany To Many insert is not Updating join table
I am having following Entity class: @Entity @Table(name = "USER") public class User implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "USER_ID") private Long...
View ArticleError creating bean PersistenceExceptionTranslationPostProcessor
Hello, When configuring both PersistenceExceptionTranslationPostProcessor and entityInterceptor in hibernate-context.xml I am getting the trace below: If I remove either one of them the build works ok....
View ArticleSimple unidirectional @OneToOne
Hi, I found this simple example, but I'm surprised there is no easy solution as I would think this was a common user case. (Using Spring 3.2, Hibernate 4.2.1 and Mysql)....
View ArticleUsing Hibernate and JDBCTEmplate with same datasource(and connection)
Hi , I had a code which uses JDBC Template and I want to convert some of the DAO's to use Hibernatewith same conenction. Belwo is my application context .xml <jee:jndi-lookup...
View ArticleBest pratice to persist JAXB generated elements
From a given schema, I generated a bunch of classes using Apache CXF wsdl2java tool. Now I'd like to persist them using Spring Data JPA. I guess I have two options: 1. Annotate the generated JAXB...
View ArticleCDI Integration
I'm trying to get CDI Integration, but the following errors occurs at deployment: WARNING: Error in annotation processing: java.lang.NoClassDefFoundError:...
View Articleautomatic generation of bidirectional relationship handling methods
Hi, As described on this other thread: http://forum.springsource.org/showth...s-in-Hibernate Some time ago I have created a Maven plug-in that is able to process entity classes to implement...
View ArticleI need advice about Spring Data
hi guys, I'm new in Spring framework and I need to help about how to implement persistence layer in my website app. proyect need to use loggin service and others services that need persistence I don't...
View Article[Spring JDBC]How to make a simplejdbc call for a stored procedure with...
Hi I posted my question already on StackOverflow: link I encountered some threads: 1) 2) So it seems this issue still isn't resolved to use withoutProcedureColumnMetaDataAccess to controll the params?
View ArticleNo qualifying bean of type [javax.persistence.EntityManagerFactory] is defined
Trying to get spring data REST + Neo4j working in a no XML config. My source is here: https://github.com/tony-landis/spring-data-neo4j-rest Jetty starts up fine, but any request throws this error:...
View Articlejavax.persistence.TransactionRequiredException: no transaction is in progress
Please help with the below issue, Everyone seems to have the same kind of problem. I did read through the forum but couldn't find the solution. What ever solutions have been posted i tried couple of...
View ArticleHow to use 2 sessionFactory in one project
Hi I need 2 connect to two database and read/write data to both. For this issue i creates a jdbc.properties like this : Code: ##################################################################...
View ArticleInheritance with Rowmapper
Hi, We are using jdbcTemplate in our DAO classes and not using an ORM. I am interested in knowing what is the best way to update attributes of a parent object using the rowMapper. If class B extends A,...
View ArticlePagination performace problem in Spring Data/Jpa.
Hi all, I'm using Spring Data Jpa/Hibernate to load a paged list of 20 items from a MySql database with 200.000 records. I'm experiencing very poor performace, to load a page of 20 record it takes...
View Article