jpa « Roo « Spring Q&A





1. How can I provide my own @id field using Spring Roo and JPA    stackoverflow.com

I am trying to get Spring Roo to use my own @Id field instead of generating one.

@Entity
...
@RooEntity
@Table(name = "usr")
public class User {
    @Id
    @GeneratedValue(strategy = ...

2. Creating a Many-to-Many Relationship Using Spring Roo    stackoverflow.com

Can anyone direct me how to create a many-to-many relationship using the spring roo framework? I've been trying to implement this relationship and can't seem to get through with it. Anyone ...

3. how to use a custom class as a JPA Id    stackoverflow.com

I have a custom class which I have to use as Id for an entity. It looks as follows

public class ProductId {
private final String id;

public ProductId(String id) {
    ...

4. Hibernate JPA 2 Metamodel Generator ignore fields when uses with Spring Roo    stackoverflow.com

I want to create a JPA 2 Metamodel by Hibernate JPA 2 Metamodel Generator for Spring Roo Entities.

<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>1.1.1.Final</version>
I get the process working in the way described at http://docs.jboss.org/hibernate/jpamodelgen/1.1/reference/en-US/html_single/. I also ...

5. WrongClassException when assigning entries on one side of many to many relationship    stackoverflow.com

I'm using Spring Roo (and Hibernate) for a web application. I've got two entities which have a MANY-TO-MANY relationship:

public class Student{
   @ManyToMany(cascade = CascadeType.ALL,mappedBy="students")
   private Set<Course> courses ...

6. Spring Roo referencedColumnNames not mapped to a single property    stackoverflow.com

I am trying Roo database reverse engineering and I had a problem with my first real database. For this question, I created a minimal example showing the problem. In the DB ...

7. Spring Roo Master/Detail & @OneToMany    stackoverflow.com

In reference to Problem with @OneToMany annotation with Spring Roo, the <field:select... solution works well for create & update.jspx. Any idea how to get this to work for show.jspx? ...

8. Deleting an instance of an object with a MANY_TO_MANY relationship without cascading fails    stackoverflow.com

I've got two classes (Students and Courses) which have a many-to-many-relationship. Instances of them can exist without the other one. Therefore I removed the cascade-attribute in the JPA-annotation: @ManyToMany(cascade = CascadeType.ALL) Once I ...

9. Roo 1.1.1 and Hibernate issues    forum.springsource.org

Just started with Roo1.1.1. My first entity's integration test failed. Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.EntityNotFoundDelegate at java.net.URLClassLoader$1.run(URLClassLoader.java: 200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07) at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:2 ...





10. Problem with JPA+ROO    forum.springsource.org

Hi, When I tried with hibenrate+roo. its working fine. But when use JPA as my provider, its giving the following error org.apache.openjpa.persistence.ArgumentException: [Error while processing persistent type ...

11. Is Roo 1.1.x compatible with JPA 1.x?    forum.springsource.org

Is Roo 1.1.x compatible with JPA 1.x? We have a large project which is running Roo 1.0.x on a Weblogic 10.3.3 server using Hibernate for JPA 1.x We really want to ...

12. Using JdbcTemplate w/Roo, not a different JPA?    forum.springsource.org

I have an old Spring 2.x project that was created from scratch. I have gotten use to and like JdbcTemplate. I am now starting another project and decided to use the ...

13. Why is roo/hibernate inserting null?    forum.springsource.org

Why is roo/hibernate inserting null? Hi All, This is my first roo project. It sure looked easier watching the videos. I have an Owner to persist: Code: @RooJavaBean @RooToString @RooEntity(table = ...

14. Roo v1.1.4.RELEASE [rev f787ce7] & JPA 1 or Hibernate 3.3    forum.springsource.org

Roo v1.1.4.RELEASE [rev f787ce7] & JPA 1 or Hibernate 3.3 Hi, I need to target an application server that does not support JPA 2. After connecting to the Oracle dB setting ...

15. Does the Spring Roo team see any problem with JPA (Hibernate)?    forum.springsource.org

Does the Spring Roo team see any problem with JPA (Hibernate)? Hello: There is a current of opinion against JPA, ORM in general (and Hibernate in particular) You can find a ...

16. Spring Roo and Hibernate @SQLDelete    forum.springsource.org

I originally had it without the parens. I did see another example that had the parens. Basically, I was to the point of "Oh well, can't do any harm, except for ...





17. blob or byte arrays in roo jpa    forum.springsource.org

I am using roo to build my entity. I am trying to add a byte[] or blob type to my entity. How do I do that? when specifying the field type ...

18. Roo and Hibernate Criteria    forum.springsource.org

I am using Roo with JPA and want to build custom SQL queries in the controller. Rather than building up a string based query it would be nice to use Hibernate ...

19. Optimizing JPA on a Roo project    forum.springsource.org

Optimizing JPA on a Roo project I created a proof of concept for our new REST based JSON API. I used ROO, Spring 3 and JPA. (This is just a POC ...

20. ROO, toString and JPA    forum.springsource.org

Looking at the generated Roo_toString:toString methods, they contain references to getX or countX methods where X can be an associated entity. This will trigger a database query if the associated X ...

21. Spring Roo and Hibernate 3.5    forum.springsource.org

Does anyone know when Roo will support Hibernate 3.5? I know there is plans but the jira issue has not been updated in awhile for any status. Has anyone tried getting ...

22. Roo to support JPA 2 features?    forum.springsource.org

Hi, Are there any plans for Roo to support the new features of JPA 2.0? In particular: Mapping of embeddables, Mapping of collections of (non-entity) values, and my beloved unidirectional OneToMany ...

23. Roo and Hibernate    forum.springsource.org

Roo and Hibernate Newbie to Hibernate and Roo. Could someone give me a pointer to where I can find a good explanation of how to use Hiberbnate with Roo. Within the ...

24. Hibernate Table Inheritence with Roo Q    forum.springsource.org

Oct 18th, 2010, 07:17 PM #1 simonwhelan76 View Profile View Forum Posts Private Message Member Join Date Sep 2010 Posts 33 Hibernate Table Inheritence with Roo Q Hi Is it possible ...

25. Hibernate Problem with roo    forum.springsource.org

Hibernate Problem with roo Hiiiiiiiiiiiiiiiiiiiiiii friends i have one doubt will any body clarify this I am using roo with MySQL my pom.xml file having the MySQL version 5.1.6 and i ...

26. How to configure OracleLobHandler in ROO/JPA    forum.springsource.org

How to configure OracleLobHandler in ROO/JPA Hi, the insert of a Blob to the database throws the following exception: Code: Caused by: javax.persistence.RollbackException: Error while committing the transaction at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:93) at ...

27. Hibnernate Spring Roo and @SQLDelete    forum.hibernate.org