Quantcast
Channel: Spring Community Forums - Data
Browsing all 297 articles
Browse latest View live
↧

Query @DBRef field

I have 2 entities as following: Code: @Document public class Freelancer {  @Id  String id;  String name;  @DbRef  List<Project> bidProjects; } @Document public class Project {  @Id  String id;...

View Article


JPA: Pagination sort on parameterized property ?

I've just discovered the awesome out-of-the-box working feature of pagination ! Well done ! :D It works perfectly for elementary properties. My question however is whether the api also allows for...

View Article


persistence.xml not detected in webapp

Hello. My project is composed by : a backend.jar project that contains entity, dao, servicesa webapp.war file for my webapp. The backend is build using spring. To use JPA, I added a persistence.xml...

View Article

jdbcTemplate insert in h2

hi i use spring 3.2.3 and h2 database. my user object only have string attribute. my class test Code: @RunWith(SpringJUnit4ClassRunner.class) @TransactionConfiguration(transactionManager =...

View Article

Bug in example code in docs for configuring jpa repositories using java...

In this documentation, http://static.springsource.org/sprin...ositories.html , specifically 2.1.2 Annotation based configuration there appears to be a bug in the following example code: Code:...

View Article


Inject EntityManager in a custom PropertyPlaceHolderConfigurer

Hello, I would like to implements a custom PropertyPlaceholderConfigurer to load my properties from a database. So I just add a Bean like this : Code: @Repository @Transactional public class...

View Article

Kitchens Battle

Kitchens Bath www.kitchendesign1.co.uk .Kitchens Bath with appliances for sale only £595. Tel 01616-694785. Kitchens Bath

View Article

Issue for Datasource

Hello i have a question about initializing DataSource. proj's config is liike below. <bean id="sfwTransactionManagerCO" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager" >...

View Article


findBy Enum

Hello Guys, i met such problem and don't know how to resolve it. Problem is next: I have next model Code: @Entity(name="Authority") @Table(name="AUTHORITIES") public class Authority implements...

View Article


Spring data- rest: " Cannot create inner bean '(inner bean)'"

Hello: I have a problem with a piece of software which uses Spring data-rest. When I try to access at the main URL of the program I get the next error message: Code:...

View Article

Clarification of behavior using @Transactional with inner method calls

Hey all, I am currently checking Spring Forums and StackOverflow to get a definitive answer on what Spring's @Transactional behavior should be in the following situation. I have two services, Service A...

View Article

Spring Data REST RestResource url

Hi all, Is it possible to export a @RestResource in Spring Data REST with a prefixed URL like /xxx/yyy/<path>? Now, i'm able to define such a resource: @RestResource(exported = true, rel =...

View Article

Spring Data REST Export @Entity and related n:n data

Hi all, Sorry for the newbee question, but i can't find examples exporting a JPA entity with all the data asociated with this entity as a REL ... I have a n:n relation mapped with JPA and this...

View Article


Cannot serialize Spring Data object in Jersey using JAXB

I have a RESTful web service written with Apache Jersey 1.17. It is defined as follows: Code: @GET @Produces({ APPLICATION_JSON, APPLICATION_XML }) public Page<Document> findDocuments(...

View Article

HQL query object collection's attribute

I'm trying to query the collection "followees" in my Spitter class. But I'm not sure how to. And if there's a way, is it possible for each instance in the list to return an attribute instead of...

View Article


Any Machine Learning implementation?

Spring framework is wonderful, I must say that no one project that i involved(I am from china, 6 years as a java engineer) not integrate Spring. Spring has become more complex & powerful in recent...

View Article

Swagger support for spring-data rest exporter

Hi all, Is there any support for swagger in spring-data rest exporter? Any plans to implement this support?

View Article


"Unable to locate current JTA transaction" after migration to Hibernate 4

Hi. I am in the process of upgrading from Hibernate 3.6.10 to 4.1.8 and am encountering a few problems. I am using Spring 3.2.3.RELEASE and Hibernate 4.1.8.Final, deploying on Glassfish 3.1.2 which has...

View Article

Spring Data Examples not working?

I downloaded the Spring Data Examples from https://github.com/SpringSource/spri...a-jpa-examples and at least one of them seems to be broken. It references a non-existent class...

View Article

org.hibernate.PropertyValueException: not-null property references a null or...

org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.Child.parent I am trying to save the parent and child values using jpa by passing parent and child...

View Article
Browsing all 297 articles
Browse latest View live