entity 1 « JPA « Spring Q&A





1. Can Spring Webflow 2.0's entity manager commit from subflow states?    stackoverflow.com

My team and I are currently starting up a project using Spring 2.5.6 and Spring Webflow 2.0 (JDK 1.4.2). We're in the design phase right now, and I would like ...

2. Equinox (OSGi) and JPA/Hibernate - Finding Entities    stackoverflow.com

I am trying to use Hibernate/Spring in an OSGi (Equinox) environment. It works great if I explicitly point it to the Entity classes in the Persistence.xml:

 <class>com.es.t.eee.domain.StuffSource</class>
 <class>com.es.t.eee.domain.PostalAddress</class>
What I want ...

3. LazyInitializationException while unit-testing Hibernate entity classes for use in Spring, using TestNG    stackoverflow.com

In my Spring configuration, I've asked that the session should remain open in my views:

  <bean name="openSessionInViewInterceptor" class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor">
    <property name="sessionFactory" ref="sessionFactory"/>
    <property name="flushMode" value="0" ...

4. How can I configure a JPA EntityListener via a Spring XML configuration file?    stackoverflow.com

I have two webapps, that are built together and respectively provide a client and admin access to a database. I'd like to register two JPA EntityListeners to a given class, one in ...

5. Spring + Hibernate = Unknown entity    stackoverflow.com

I'm trying to combine Spring with Hibernate using Annotations and I'm getting the following error:

org.springframework.orm.hibernate3.HibernateSystemException : Unknown entity: entities.Bar; nested exception is org.hibernate.MappingException: Unknown entity: entities.Bar
Here is my setup... My Entity:
package entities;

@Entity ...

6. JPA Entity (in multiple persistence-unit) in OSGi (Spring DM) Environnement is confusing me    stackoverflow.com

I'm a bit confused about a strange behavior of my JPA's related objects. I have three bundle : The User bundle does contain some user-related objects, but mainly the User object. The ...

7. Setting createdBy and updatedBy in JPA entities automatically    stackoverflow.com

I'm working on a JPA (Hibernate implementation of), Spring and Stripes web app. I have a number of JPA entities that have the following fields in common for both audit and ...

8. Flex/Spring: Working with join table/entity    stackoverflow.com

I have a question regarding mapping and entities/domains with Flex/Spring mapping via BDS. I currently have domains mapped to tables, and I am working off existing code to try and change ...

9. spring hibernate.createSQLQuery return as custom entity    stackoverflow.com

after did Query query =hibernate.createSQLQuery("select abc,def from table"); Is it possible to auto "parse" the result to "pojo" list? so that i can do below

List<CustomPOJO> abc = query.list();    //CustomPOJO ...





10. Spring+JPA+Hibernate: persist is updating the entity surprisingly. Please go through the details    stackoverflow.com

In my code, I did as follows:

  • queried for a course entity
  • populate it with the given course data.
  • courseDao.update(entity) which internally calls persist(entity) method.
  • Surprisingly, the data is got updated successfully.
I am confused ...

11. When to call Dispose in Entity Framework?    stackoverflow.com

In my application I am making use of Spring.Net for IoC. The service objects are called from the ASP.Net files to perform CRUD operations using these service object. For example, I ...

12. When uploading Arabic files in Spring, filename ends up with XML entities instead of Arabic glyphs    stackoverflow.com

I am using Spring upload to upload files. When uploading an Arabic file and getting the original file name in the controller, I get something like:

&#1575;&#1604;&#1605;&#1594;&#1601;&#1604;&#1610;&#1606;.png
I expect it to be:
...

13. Entity Aspect (in Spring)    stackoverflow.com

I'm having a bit of a problem defining my aspects. I've got a bunch of entities that I'd like to profile the get-methods in, so I've written the following pointcut and ...

14. Spring, Hibernate and Ehcache - Wrong entities    stackoverflow.com

I've got a webapp which uses spring+hibernate for my data layer. I'm using 2nd level caching with ehcache as provider. Everything seems to work so far but sometimes we encounter a ...

15. Loading selected Hibernate entities with JPA & Spring    stackoverflow.com

Is there a way to load only selected entities with Hibernate? I would like to only load a selected handful for integration testing.

16. Websphere: JPA: java.lang.IllegalArgumentException: Object: Entity is not a known entity type    stackoverflow.com

I'm trying to deploy an app using Eclipselink as my JPA Layer on IBM Websphere 7.0.0.9. While trying to do any CRUD operations, i get the following exception:

Caused by: java.lang.IllegalArgumentException: Object: ...





17. question regarding mulitple entityManagerFactory in Spring 2.5.6    stackoverflow.com

I am using Spring+JPA+Hibernate in my application. The issue I am facing is that I have multiple databases in my application and I have configured them correctly(I think) in the applicationContext.xml. Please refer ...

18. Spring 3 Forms + ModelAttribute + Deteched Entity    stackoverflow.com

When saving an entity using Spring Forms and Hibernate I use the following controller method (simplified) to do that.

@Transactional
@RequestMapping(value="/speichern", method = RequestMethod.POST)
public void saveEvent(final @ModelAttribute("__eventData") MDKEvent p_event) {
    ...

19. JPA Entity is not being persisted after exception    stackoverflow.com

I´m having the following problem: I have 2 classes (A and B). The class A has a method (method1) annotated with @Transaction(noRollBackFor = ExceptionB.class) that calls the method2 from class B. ExceptionB ...

20. Entity Framework v4 and Spring .Net    stackoverflow.com

I would like to know if anyone used EF4 with Spring .Net in a WCF service. How easy it is to use DI with EF4 and other pros and cons. Currently I'm ...

21. Spring/Hibernate: Do you have to load entities to use it after saving?    stackoverflow.com

I have a database model with two tables: Session and ScriptExecution which are associated with a one-to-many relationship:

public class ScriptExecution implements Serializable {

 @ManyToOne
 @PrimaryKeyJoinColumn
 private Session session;

...
}

public class Session implements ...

22. what's spring framework?    stackoverflow.com

i'm begginer for java spring framework. and how to configuration xml file. and what do to do modules. how to use those? mainly how to use spring framework? please advice me ...

23. Multiple Entity Manager issue in Spring when using more than one datasource    stackoverflow.com

I have two entity managers in my applicationContext.xml which corresponds to two different databases. I can easily query database1 with entityManager1, but when I try to access database2 with entityManager2, I ...

24. Hibernate - spring annotated entities not scanned from within jar    stackoverflow.com

I have a package containing annotated entity classes that I import into my web project. When tomcat deploys the project the entity class that are in the jar are not scanned for ...

25. hibernate spring: PrePersist the place for business-logic?    stackoverflow.com

I am using Spring + Hibernate to create and store a record in a MySQL database. Just before persisting a record I want my system to generate a random-string which will be ...

26. Config Spring for works with hibernate and entities mapped by annotations    stackoverflow.com

im using hibernate and i maps my entities with annotations (so no xml files). I finally decided to try spring framework but I encountered some problems to make it work. All tutorials i ...

27. Setting spring's entity manager to commit mode    stackoverflow.com

Is there a way the set the entity manager's flush mode to commit mode via configuration?

28. Entity classes when packaged in another bundle than bundle containing persistence.xml    stackoverflow.com

Does anyone have a solution for importing a entity class in bundle A into bundle B's persistence.xml. I need to seperate my Entities so that domain objects that are generic to ...

29. not being able to persist entity in JPA in spring 3    stackoverflow.com

I am not being able to persist entity in JPA, although findAll works here. Here is the JpaDAO


package aop.web.teacher.dao;

import java.lang.reflect.ParameterizedType;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceException;
import javax.persistence.Query;

import org.apache.log4j.Logger;
import org.springframework.orm.jpa.JpaCallback;
import org.springframework.orm.jpa.support.JpaDaoSupport;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


public abstract class ...

30. Spring/Hibernate Entity Management Web Interface/UI    stackoverflow.com

We have a server application that exposes a certain model, and set of services built on that model, to a particular client UI through a number of protocols. This is the ...

31. Hibernate Search: index updated with previous entity data    stackoverflow.com

I am trying to do a basic setup of Hibernate Search 3.3 working alonside Spring 3.0, JPA 2.0 and Hibernate 3.6, all of this running on Tomcat 6.0. I have declared a ...

32. org.hibernate.MappingException: Unknown entity:    stackoverflow.com

I tried to see all the questions on this topic but none of them helped me. And I really want to understand what is going on with my code. I have a ...

33. spring jpa hibernate unknown entity exception    stackoverflow.com

I have a rather weird thing happening. If I clean my target folder and run my tests they work fine. if I run it again without cleaning i get the following error

java.lang.IllegalArgumentException: ...

34. Spring DB2 JPA Entity Manager Problem    stackoverflow.com

I'm trying to configure Spring, JPA and DB2 in order to have the entity manager instance to be used in my spring controllers but according how I have configured Spring this ...

35. How to stop JPA entity manager from flushing before every select    stackoverflow.com

I am using JPA (with hibernate as the provider) in spring for a web-app. I have a few methods that construct a complex object to be passed to the UI. As part ...

36. Creating metatable for Hibernate domain objects    stackoverflow.com

In my Hibernate + Spring application, I have several annotation based domain objects. I would like to go through all of them and create metatable with definitions for all of them. ...

37. Scheduling a persistent entity    stackoverflow.com

Let's say I have some DB entity with a CronExpression field:

@Entity
@Table(name = "job")
public class Job {
    ...
    private CronExpression cronExpression;

}
What is the best approach to ...

38. Shared PK in entity mismatch    stackoverflow.com

I'm developing an example web-application, using JPA 2.0 entities, Hibernate 3.6.2 and Spring 3. The example contains two tables in a one-to-one relationship, the parent entity is Client and the child ...

39. Can I define a default order for an @Entity?    stackoverflow.com

For example,

@Entity
class Foo {

    @Id
    int id;

    @Column(nullable = false)
    int priority;
    ...
}
I want HibernateTemplate.loadAll(Foo.class) to ...

40. InstantiationException in persistent entity    stackoverflow.com

I have a problem when I get an object from hibernate. The stacktrace is:

org.hibernate.InstantiationException: Could not instantiate entity: main.java.com.gwt.app.server.User
at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:114)
at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:123)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.instantiate(AbstractEntityTuplizer.java:603)
at org.hibernate.persister.entity.AbstractEntityPersister.instantiate(AbstractEntityPersister.java:3911)
at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1422)
at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1411)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1446)
at org.hibernate.loader.Loader.getRow(Loader.java:1355)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:611)
at org.hibernate.loader.Loader.doQuery(Loader.java:829)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLaz 

41. Persistence doesn't create table from entity in database    stackoverflow.com

I build a web application using hibernate JPA 2 + spring. I have problem with creation of domain model. In persistence I declared the automatic creation of database tables from entity. ...

42. Spring/Hibernate/Flex = Unknown Entity    stackoverflow.com

I am having a bit of trouble with spring+hibernate throwing the error
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.rottmanj.domain.user.UserAccount; nested exception is org.hibernate.MappingException: Unknown entity: com.rottmanj.domain.user.UserAccount I have debugged this code and have researched the issue, ...

43. Spring - hibernate: detached entity passed to persist    stackoverflow.com

I have the following Object:

public class Constraint {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
int id;

String name;
String description;
String path;
int level;

@ManyToOne
@JoinColumn(name="parent_id")
Constraint parent;

@OneToMany
@JoinColumn(name="parent_id")
Set<Constraint> children;

@ManyToOne
@JoinColumn(name="type_id")
ConstraintType type; }
As you see this table represents a tree structure. Having the functions:
public List<Constraint> getAllDescendantsOfConstraint(Integer id) ...

44. How to externalize Hibernate Entities?    stackoverflow.com

I'm working on a Java/Spring/Hibernate based web app, developed in Eclipse. This web app is actually two different projects that duplicate a couple Hibernate entity classes, as well as their ...

45. Spring-data cross store entity management    stackoverflow.com

I want to use Postgres, MongoDB and Neo4j together in my application. I was able to configure them all, however now each of my POJOs is backed my graphNode as well ...

46. Modelling Database Entities using Spring Rowmapper Object    stackoverflow.com

I'm in the process of creating a front end for a Database Driven application and Could do with some advice. I have the following basic entities in my database:

  • aspect
  • aspect_value
As you can ...

47. Ignore transient pattern on save hibernate entity    stackoverflow.com

How to save hibernate entity and ignore (not correct)transient pattern. for example:

@Entity
@Table(name="`REQUEST`")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="`receiver`",discriminatorType=DiscriminatorType.STRING,length=20)
public abstract class Request implements UUIDAble{
    @Id @GeneratedValue(strategy=GenerationType.AUTO)
    private Integer id;
    @Transient
 ...

48. Spring get all @Entity classes    stackoverflow.com

Is there a way to get all @Entity classes in Spring? I can't seem to find any solution. Thanks. answer:

<dependency>
   <groupId>org.reflections</groupId>
   <artifactId>reflections</artifactId>
   <version>0.9.5</version>
</dependency>
will do this easily ;)

49. Hibernate 4 (Jboss as 7) can't auto detect entity and insert into PersistenceUnit, cause `unknow entity` exception    stackoverflow.com

I meet a similar problem with this How to auto-register entities with JPA/Hibernate: Unknown entity . I am using jboss as 7, hibernate 4( which come along with jboss as ...

50. Is there a way to load an entity into an instance of derived class?    stackoverflow.com

I have an entity and specialized class which is derived from the entity. Is there any way (something tricky in JPA or spring) to let JPA create instances of the derived class ...

51. Loading of a Dynamically created Entity by automatic dyscovery    stackoverflow.com

I have to work with a strange DB structure, where on production there could be more tables but with same columns. And we want to use JPA (Hibernate) with handle them, ...

52. Hibernate and Spring with Hibernate Annotations = "Unknown Entity..."    stackoverflow.com

I have a Project with Spring and Hibernate and I want to use Hibernate Annotations (@Entitity, @MappedSuperClass) in my classes. I have the following hibernate-config.xml:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
   ...

53. Casting entities JPA 2, Spring 3    stackoverflow.com

Hi all im having trouble extending entities and persisting them to the data base, my model is has folows, People - Base entities, which has to be persisted
...

54. Spring Hibernate - Saving multiple entities associated with each other    stackoverflow.com

I'm trying save 3 entities, address, name and employee, with employee containing an address and a name. I already made the DAO's for each entity, but for some reason, this exception ...

55. Spring - should entity class consist method besides getX and setX?    stackoverflow.com

I have some experience with Django and its MVC (MTV rather...) concept. In my previous project in django, I always tried pack a lot of functions (methods) to Model class - ...

56. org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity    stackoverflow.com

This is a spring mvc application using IntelliJ. I'm getting this error:

org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.testproj1.core.model.User; nested exception is org.hibernate.MappingException: Unknown entity: com.testproj1.core.model.User
    org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:679)
    org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
   ...

57. org.hibernate.MappingException: Unknown entity - though my entity has all it needs    stackoverflow.com

I'm trying to add some Hibernate functionality to a Spring web application. This is my first time when I use the Hibernate Session Factory to be somehow independent from Spring (I ...

58. Persisting additional Entities in @PostPersist in Hibernate    stackoverflow.com

I am attempting to persist additional entities in a @PostPersit method from a domain class. As the @PostPersist method is on the domain class I do not have access to any of ...

59. Multiple Hibernate Entity Interceptors?    forum.springsource.org

Multiple Hibernate Entity Interceptors? Hello. I'm trying to set up two different Entity Interceptors for hibernate using the LocalSessionFactoryBean. It seems that the LocalSessionFactoryBean only allows for one interceptor. Can I ...

60. Jackson JSON dependent entity serialization    forum.springsource.org

61. Spring + JPA Entity with multiple databases    forum.springsource.org

Spring + JPA Entity with multiple databases Hi Spring users: I have a Spring + JPA application which connects to 2 different databases. For this I have used 2 EntityManagerFactory, 2 ...

62. Spring DB2 JPA WebSphere Entity Manager Problem    forum.springsource.org

Spring DB2 JPA WebSphere Entity Manager Problem Hi, I'm trying to configure Spring, JPA and DB2 in order to have the entity manager instance to be used in my spring controllers ...

63. Hide an entity field to the client    forum.springsource.org

Hi everybody. I'm very new to Roo, so I have no idea how to approach this: Let's suppose that I have an entity like this. Code: @RooJavaBean @RooToString @RooEntity public class ...

64. Entity mapping from multiple databases    forum.springsource.org

Entity mapping from multiple databases Hi I'm working with multiple databases, I have an Entity "A" (in the first database) that has as a property another Entity "B" from a 2 ...

65. Command entity --class '~.domain.Foo' was found but is not currently available    forum.springsource.org

Command entity --class '~.domain.Foo' was found but is not currently available When I open the roo shell for an existing project and try to create a new entity I get the ...

66. controller scaffold problem when entities have same name    forum.springsource.org

controller scaffold problem when entities have same name Roo 1.1.1 with script: Code: project --topLevelPackage com.schematest persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY entity --class ~.domain.a.Plan --table Plan --schema a --serializable --testAutomatically ...

67. JPA never inserting Entities or Commiting DB Changes- Glassfish3, JPA2, Eclipselink    forum.springsource.org

JPA never inserting Entities or Commiting DB Changes- Glassfish3, JPA2, Eclipselink Apologies if this has been covered, I've been searching on this issue for a few days. The behavior I'm getting ...

68. MappingException: Unknown entity:    forum.springsource.org

MappingException: Unknown entity: When the session factory is instantiated is can find the class domain.StockQuote because otherwise I get a NoClassDefFoundException when stating Tomcat. However when I runn the pplication I ...

69. Unknown entity why?    forum.springsource.org

Feb 3rd, 2011, 12:46 AM #1 arcanjozer0 View Profile View Forum Posts Private Message Junior Member Join Date Sep 2009 Posts 5 Unknown entity why? I've been trying for days to ...

70. One entity not persisted    forum.springsource.org

Feb 4th, 2011, 07:04 AM #1 CreatixEA View Profile View Forum Posts Private Message Junior Member Join Date Jan 2010 Posts 6 One entity not persisted Hi, I'm working for Spring ...

71. Best way to display a entity related image stored on disk    forum.springsource.org

Best way to display a entity related image stored on disk Hi, I added an image to one of my entity using a CommonsMultipartFile field. The entity only stores the image's ...

72. Cannot find entity with Chinese characters    forum.springsource.org

Cannot find entity with Chinese characters Hi all: I meet a problem when go through samples provided by ROO reference. It's the pizza shop sample. 1. I use finder to create ...

73. Unable to persist an entity with @NotNull @Digits field, could be a bug    forum.springsource.org

I'm getting integration test failure while persisting an entity with a @NotNull @Digits field. Here's the script to reproduce the problem: Code: // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at ...

74. Order of entities in ApplicationEntityTypesProcessor    forum.springsource.org

Order of entities in ApplicationEntityTypesProcessor Is there any way to control the order of the entities that appear in GWT's left hand menu (proxy places list)? Tracing through code, I found ...

75. Order of entities in ApplicationEntityTypesProcessor    forum.springsource.org

Order of entities in ApplicationEntityTypesProcessor Is there any way to control the order of the entities that appear in GWT's left hand menu (proxy places list)? Tracing through code, I found ...

76. MappingException Unknown entity    forum.springsource.org

MappingException Unknown entity Hello, I am using Spring 3.03. I have my persistent object distributed across two jar files. Each one has its own context file (applicationContext and idmService-Context) and they ...

77. spring persistentobjectexception detached entity passed to persist    forum.springsource.org

Hi this is manoj getting those errors pls help me .I am getting those errors due to save methods. org.springframework.dao.InvalidDataAccessApiUsageE xception: detached entity passed to persist Thanks in Advance,

78. detached entity passed to persist error    forum.springsource.org

hello sir I am getting the below problem can anybody please explain for which reason i got this error.. ------------------------------------------------------------- detached entity passed to persist:nested exception is org.hibernate.PersistentObjectException: detached entity passed ...

79. create an entity    forum.springsource.org

I am having trouble getting to go to a specific url after creating an entity. why does Roo try to convert all parameters of entity creation into encodable url values. can ...

80. managing menu content with entities    forum.springsource.org

managing menu content with entities I'm creating a user-manageable menu system for my web application and I was wondering if anyone else had done such designs with Roo? At the moment ...

81. Form or DTO or Transient in Entity    forum.springsource.org

Form or DTO or Transient in Entity Hi all, Am having problem of the display or saving value in the Entity from the controller. Am using Spring 3 MVC and JPA ...

82. Repeated column in mapping for entity: xxx.xxx.JsyDepartment column: id    forum.springsource.org

Mar 30th, 2011, 12:28 AM #1 xstraber View Profile View Forum Posts Private Message Junior Member Join Date Oct 2007 Location Jakarta Posts 4 Repeated column in mapping for entity: xxx.xxx.JsyDepartment ...

83. Problem with entity in separate JAR on testing    forum.springsource.org

Apr 4th, 2011, 11:32 PM #1 aliirawan View Profile View Forum Posts Private Message Junior Member Join Date Nov 2010 Posts 2 Problem with entity in separate JAR on testing I'm ...

84. Mapping @PathVariable to an entity    forum.springsource.org

Mapping @PathVariable to an entity Hi, given a method like @RequestMapping("/someUri/{carid}") public String getCarName(@PatVariable String carid) { Car car = Car.lookupCar(carid); return car.getName(); } is it possible to map the the ...

85. How to generate the creation form of an entity depending on the order of the fields    forum.springsource.org

How to generate the creation form of an entity depending on the order of the fields Hello, I do not quite understand how the forms for the creation of an entity ...

86. finder for all entity attributs    forum.springsource.org

Here is the solution use the command to generate finder with multiple attributs : finder list --depth numberOfAttributs --filter att01,att02... then use : finder add --finderName aFinderNameFromTheGeneratedList The output list can ...

87. How to Verify Related Entity Exists?    forum.springsource.org

How to Verify Related Entity Exists? I have a Company entity which has a ManyToOne relationship with an SIC entity: Code: public class Company { ... @ManyToOne @JoinColumn(name = "SIC") private ...

88. Can't create Entity 'Author'    forum.springsource.org

Can't create Entity 'Author' came across a weird one. It appears that the automatic tests created for an entity won't work if the entity is called 'Author'. Honestly, it worked after ...

89. Wiring up spring and hibernate with annotations: entity not loading    forum.springsource.org

Wiring up spring and hibernate with annotations: entity not loading Hi, I'm trying to wire up spring and hibernate using Spring 3.0.1 and Hibernate 3.6.3. (This is my first time using ...

90. JPA not storing entity in database    forum.springsource.org

JPA not storing entity in database Hi, I've defined persist method in GenericDAO as follows: Code: @Transactional(readOnly = false) public void persist(T entity) { entityManager.persist(entity); } However, when I try to ...

91. Configuring an @Repository for 2 separate instances with 2 separate Entity Managers??    forum.springsource.org

[Container/JPA related question] Hi, Is there an easy way to wire a repository (annotated with @Repository) to allow 2 separate instances with 2 separate Entity Managers (for use with 2 separate ...

92. JpaRepository.save() -> detached entity passed to persist...?    forum.springsource.org

JpaRepository.save() -> detached entity passed to persist...? i'm working with a ManyToOne relationship, for example there are many LineItem entities to one Order entity. i have cascade={CascadeType.PERSIST} on LineItem. i have ...

93. No identifier specified for entity    forum.springsource.org

I got an error saying Code: org.hibernate.AnnotationException: No identifier specified for entity: MyEntity. when I deploy my roo generated war file to Tomcat 6.0. My project is using Spring 3.0 + ...

94. Read-only entities    forum.springsource.org

Hi, with Roo 1.1.2, I could do something like this Code: @RooEntity(removeMethod = "", mergeMethod = "", persistMethod = "", flushMethod = "") This would make sure that my entity was ...

95. Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer    forum.springsource.org

Jun 1st, 2011, 06:15 AM #1 vipinsingh View Profile View Forum Posts Private Message Junior Member Join Date Jun 2011 Posts 3 Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer Hi ,I am ...

96. java.util.currency as an entity field    forum.springsource.org

97. How to develop database entities with i18n support    forum.springsource.org

Hi! I'm totaly new to spring and roo and have to evaluate, if we use roo for new projects in our company for the future. I18n support for templates is the ...

98. What is the best way to sort entities?    forum.springsource.org

What is the best way to sort entities? My roo app is mostly used for JSON responses to a thick client request, so the UI for me is really just a ...

99. can't determine annotations of missing type javax.persistence.Entity when weaving...    forum.springsource.org

Jun 15th, 2011, 08:36 AM #1 alistairparler View Profile View Forum Posts Private Message Junior Member Join Date Jun 2011 Posts 3 can't determine annotations of missing type javax.persistence.Entity when weaving... ...

100. Entity with different views    forum.springsource.org

Entity with different views hello i wanted to have two different views for one entity , That is what i have tried is to have two controllers for one entity one ...