Getting List of POJOs after executing a native query
I am working with Stored Procedures and Views. I call these using entityManager.createNativeQuery. The problem is that createNativeQuery method returns a List<Object[]> but I would rather like to...
View ArticleNo Session found for current thread hibernate transactions by aop xml style
I use Spring MVC. I have a problem with trigger my service --> dao method from jsp page. When I ask for jsp in a browser it shows me this: Code: 2013-07-19 07:55:41,891 DEBUG...
View ArticleSpring mongo read conversion fails after bean modification
Sorry, but the new title should be : "Spring mongo read conversion fails for beans inside a map." I have a very strange situation where the read conversion fails after i persist the modified bean to...
View ArticleBasic Questions about Spring Data-MongoDB
I've read through the tutorials, but I still can't find the answer to these questions. 1) What is the advantage of using repositories vs. using MongoOperations? Why would I use it? 2) It seems that all...
View ArticleSpring Batch Transaction error
Im using SpringBatch 2.1.7 release core and Infrastructure jars to read a CSV file and save it to DB. Integrated my code with Spring quartz scheduler to run for every minute, The Batch is working fine...
View ArticleShouldn't HibernateJpaDialect.prepareTransaction call...
The prepareTransaction method already suppresses hibernate flushing for a read-only transaction by setting session flush mode to FlushMode.MANUAL. Shouldn't this method also call...
View ArticleUsing Specification with Hibernate causes Literal value issue.
We've noticed an issue when using the Specification object with Hibernate when comparing Numeric type values. The SQL generated contains literal values instead of being parameterised. e.g. Code: public...
View ArticleHibernate listeners /propagation/ Using hibernate to search LARGE mysql table
Hi, A large part of our Spring app revolves around an events table which has about 10 million rows which is expected to grow fast Basically we started with a normal mysql innodb table (with indexed...
View Articlespring 3.2.3 and hibernate 4.x in integration. small first test.
Can some one please answer this question http://stackoverflow.com/questions/1...vc-integration ? All details are there stated. I would be very,,,, grateful.
View Articlereading natively AFTER a HQL insert ?
Hi, I have a server side process that uses HQL to do an insert in one transaction. After this transaction (outside @Transaction) it then does a native sql read (for various reasons). The SQL native...
View ArticleHibernate session closing for WAS8/Hibernate4.2.3 JMS trans
We are upgrading project from IBM websphere 7 to 8 ,Hibernate 3.3.2.GA to 4.2.3 and using Hibernate with JPA.we are auditing page clicks using Spring transaction management ( websphere based JTA) and...
View ArticleHibernate-mapping of a view is extarordinary slow - what to do?
Hi! I am mapping several Tables from a MS-SQL Server 2012 and as long as I just map a few data everything works pretty fast. I was able to map two Tables: Orders and Groups (n:1 - every order has a...
View ArticleWhat is the best way to do BULK INSERT ?
Hi! I'm trying to make an app that can save a lot of structured objects in the database. Now I am using Spring Data JPA (with hibernate + MySQL (MyIsam tables + foreign keys)) Write code for data...
View Articlejpa2 and hibernate
hi i would like to use spring data, jpa 2 and hibernate 4.2.3 i have in my maven file spring-data-jpa does i need them too? ejb3-persistence hibernate-jpa-2.0-api my persistence.xml Code: <?xml...
View ArticleUsing JdbcTemplate with CDI and Transactions
Hi, I use CDI and JdbcTemplate. Is it possible to setup the declarative transactions in the CDI environment? I do not use the spring bean factory, only CDI. I am not sure how I have to setup the...
View ArticleBeginner Question (DataSouce / autowiring)
Hello, this may be a very novice question, but I have searched and either I have a large gap in my understanding or am doing something incorrectly that I cannot figure out. In my context file here is...
View Articlejpa2 and lazy loading
hi i save an Advertisement object, after i save message i try to access message from Advertisement but it's null Code: @Entity public class Advertisement implements Serializable { @Id...
View Articlefilter a collection of child elements in a OneToMany relationship
I'm a little new to Spring Data and I'm having trouble finding anything about this in the docs. All I need to do is put a filter on a collection of child elements. I have two tables - courses and...
View Articledependency error when trying to use spring data mongo 1.2.2
In my gradle build, I have: Code: repositories { mavenCentral() } dependencies { compile 'org.springframework.data:spring-data-mongodb:1.2.2.RELEASE' } I am getting this error: Code:...
View ArticleSpring Data JPA and Conversion
Hi, I want to know if Spring Data JPA supports the following: I have 2 classes representing the same object, lets call them A and AEntity A is the domain object i use in my application, but it contains...
View Article