Will this even work?
I am having a problem with SpringData, Hibernate and HSQLDB. I'm trying to set up a class as follows. Note that the @GeneratedValue and the @Id are on different columns. (I did not come up with this...
View ArticleSetting FlushMode.Commint in Spring 3.1 + Hibernate 4.
Hi all, It's possible to set the FlushMode.COMMIT in HibernateSession using the "org.springframework.orm.hibernate4.support.OpenSe ssionInViewFilter" and...
View ArticleSpring Data JPA sorting on nested collection
I have the following domain objects: Code: @Entity public class Item { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String name; @OneToMany private...
View ArticleCan't get OpenEntityManagerInViewFilter to work
I'm struggling to get OpenEntityManagerInViewFilter to work, I keep getting Quote: HTTP Status 500 - No bean named 'emf' is defined Here's my web.xml: Code: <?xml version="1.0" encoding="UTF-8"?>...
View ArticleSpring Data MongoDB reference link is not accessible
Hi, Below link is not accessible. [URL]http://static.springsource.org/spring-data/data-mongodb/docs/current/reference/pdf/spring-data-mongo-reference.pdf [URL] Thanks, Deepak Singh
View ArticleLastModifiedDate not getting updated unless object refetched.
Hello, I have an object LoginService with three audit fields: Code: @CreatedDate @Column(name = "CREATE_TS") DateTime createTs; @LastModifiedDate @Column(name = "LST_UPD_TS")...
View ArticleCannotCreateTransactionException - Could not open Hibernate Session for...
Hey guys, I've been facing this exception: HTML Code: SEVERE: Servlet.service() for servlet [applicationContext] in context with path [/ArmagedomSeguros] threw exception [Request processing failed;...
View Article@Cachable problem for echcache (bigmemory restartable)
Hello, I am using Spring's @Cachable feature for storing objects into ehcache's big memory version which can survive server restart. Problem: I want to get the object from cache, modify some...
View ArticleMongodb: Afters automatically recreating collection indexes are missing
Hi there, Iam hopefully looking for help in this forum :-) I am using mongodb und spring. Guess I hava an annoted document (annotated width @Document and severals @Indexed) an the belonging repo. Now I...
View ArticleCreating a bean based on XML template conditionally, populate outside of app...
All, I have a project requirement that has the applicationContext, and beans configuration context XML (jpa-context): This is a stand alone project that initializes the applicationContext, and the...
View Articleorg.hibernate.PersistentObjectException: detached entity passed to persist H2 DB
i am using H2 in memory database for testing and my configuration is as follows: 1- SpringTestingConfig: Code: @Configuration @ComponentScan(basePackages = "com.myapp.data", excludeFilters = {...
View ArticleErrors in named queries Spring 3.x + JPA + Hibernate
Hi I am getting following error while deploying on Tomcat org.hibernate.HibernateException: Errors in named queries: findDSByName I have defined Named query as @Entity @Table(name = "DATASTORE")...
View ArticleSpring stored procedure on WebSphere Server - ClassCastException
I am trying to pass ARRAY object to stored procedure as below. I am using websphere for my code execution where I get datasource through JNDI. Code: private class DeleteActorsProc extends...
View ArticleOnline Shopping : APPLE IPHONE 5 64GB / SAMSUNG GALAXY S IV / BLACKBERRY Q10
PHONE HAUTE COUTURE LIMITED®. is an Approved dealers, specialized in the distributors of Mobile phones,Laptops,Games,Mobile accessories,computer,Radio e.t.c. Our objective is to develop long-term...
View ArticleSelect...in() clause with Sprign Data JPA
Hi! I have found that using a very common query like this: @Query(nativeQuery=true, value="select * from questions where id in (22,45,65,777,444)") results in a list of objects instead of a list of...
View ArticleProblems using Spring, c3p0 and hibernate - Too many connections
Hello, I have created simple rest API, using spring 3.2 that simply calls a service to retrieve a simple string from a mysql database. As part of the poc and that the web service will be used for high...
View Article"Bean must be of type FactoryBean but was actually of type...
Hi, I need to deploy an application on JBoss AS7. I'm using the version 3.2.3.RELEASE of spring and 3.6.10.Final of hibernate-core. When I run the server I have the following error:...
View ArticleCan remaining connection count in pool be determined dynamically through...
Please let me know if connection count be determined dynamically through program? I wanted to know this as I want to see if my connections are returning back to the pool after my transaction is...
View ArticleSpring mongo and java transient keyword
I've been using @Transient annotation to mark fields as transient for writing to Mongo using mongoTemplate. I do have some code I cannot annotate which contains fields that are marked as transient...
View ArticleJBoss AS 7 configured Infinispan cache-container, how to Inject through JNDI?
Hi everyone For the setup: I have a JBoss Cluster setup AS 7.1.1 of Infinispan with the following contai Code: <cache-container name="test-cache" default-cache="test_repl"...
View Article