Entity « Roo « Spring Q&A





1. JPA+Hibernate - Reconnecting entities from a @OneToMany relationship    stackoverflow.com

Consider the following simple example: One team has many players and a player may only belong to one team.

@Entity
public class Team {

    @OneToMany(cascade = CascadeType.ALL, mappedBy = "team")
  ...

2. Overwrite Spring Roo Entity method    stackoverflow.com

I'm working with Spring Roo and I need to overwrite Roo's Remove() method in the Roo_Entity.aj file. I'm getting a lot of Foreign Key constraint errors when I try to delete ...

3. Task scheduling with Spring with cron data stored in entities    stackoverflow.com

I would like to run cron tasks based on an entity, lets call that entity TaskEntity The TaskEntity can have info about what needs to be done (domain specific) and when. The ...

4. How can I create an @Entity without a @Version field using Spring Roo?    stackoverflow.com

I am using Spring Roo with JPA (Hibernate) for my entity model. I don't want to have a @Version field in some entities. How can I do that?

5. Hibernate entity throws InvocationTargetException on persist    stackoverflow.com

I'm trying to figure out why I'm getting an InvocationTargetException when persisting a modified player object. The project is a Spring Roo project with Hibernate as ORM (and GWT for the frontend, ...

6. How can I delete an entity in Spring Roo?    stackoverflow.com

I have accidentally created couple of entities in Roo. Is there a way to delete these? I browsed through the commands list but did not come across anything meaningful? Is there ...

7. Learning Spring Roo without Starting from Entities    stackoverflow.com

I just started learning Spring Roo. After reading creating web application in 10 minutes. I have the impression that Roo assumes that we have an entity concept ready, and create the ...

8. Self-referenced entity    stackoverflow.com

I have an entity called person. Each person has three fields : sexe (male, female) mother (self referenced to person) father (self referenced to person) Now, in my view jspx, I would like the two ...

9. Non-persistent entities v.s. manual POJO + View + Controller?    stackoverflow.com

I've successfully created a basic Spring Web MVC application using Roo, which I might add, was a treat! The application uses persistence (HIBERNATE + HYPERSONIC_IN_MEMORY), which is what you'd want for ...





10. How to add fields to entities in the roo-shell?    stackoverflow.com

I'd like to add fields to an already created entity in the roo-shell but I don't know which command puts an entity in the current context. Which one does that?

11. Spring Roo: use JPA entity as a DAO    stackoverflow.com

The code below is what Spring Roo generates by default, the EntityManager is injected in your domain model POJOs with the rest of the methods to manage the entity ...

12. How can I create a Spring Roo entity without an identifier field (primary key)    stackoverflow.com

I am trying to create a Spring Roo entity for a legacy database table. The table does not have a primary key defined. However, Roo will not let me define an entity ...

13. Create Entity without Roo anotations    forum.springsource.org

Create Entity without Roo anotations Hi there, I start to lean Roo, so sorry if this is stupid question: Is it possible to create entities with Roo that have original JPA ...

14. Roo 1.1.1 no longer supports entity --comment    forum.springsource.org

I have updated to v1.1.1 and now the shell does not accept the parameter --comment in the declaration of entities. However, in the declarations of fields it is still supported. Will ...

15. Problem: jc$interMethodDispatch1$com_lendholt_tables_domain _Event_Roo_Entity    forum.springsource.org

Feb 25th, 2011, 08:48 AM #1 Hamb View Profile View Forum Posts Private Message Member Join Date Apr 2008 Posts 43 Problem: jc$interMethodDispatch1$com_lendholt_tables_domain _Event_Roo_Entity Hi there, often, I get the following ...

16. Roo Entities and Glassfish?    forum.springsource.org

Roo Entities and Glassfish? I'm trying to get the skeleton together for a Roo DBRE generated Domain model in a J2EE app. I've been making progress, but ran into a stumper. ...





17. Roo generated page internal error - view entity generated with parent table set    forum.springsource.org

Roo generated page internal error - view entity generated with parent table set Hi: I'm new to Spring Roo. I reverse engineered a few database tables from MySql and had the ...

18. Roo Entity Generated Test Classes    forum.springsource.org

Roo Entity Generated Test Classes Hello, I'm new to Spring Roo and just created a Roo DB reverse engineer project (I'm using Roo 1.1.3). Everything went well and my entities accurately ...

19. Override @RooEntity for all entities    forum.springsource.org

Override @RooEntity for all entities Hi everybdy, How can I override functionality of @RooEntity for all my entities? I have to change delete so that instead of removing from database just ...

20. Learning Spring Roo without Starting from Entities    forum.springsource.org

Learning Spring Roo without Starting from Entities Hi, I just started learning Spring Roo. After reading creating web application in 10 minutes. I have the impression that Roo assumes that we ...

21. Caching Entities In Roo    forum.springsource.org

Caching Entities In Roo Hello: I am completely in the dark with how to create cached Roo entities within a Roo generated application, given that there is the persistence.xml and applicationContext.xml, ...

22. replaying roo script fails with entity already exists.    forum.springsource.org

replaying roo script fails with entity already exists. Hi, I have a roo script that I need to be able to replay, containing simple entities. But when I replay I get ...

23. Does Spring Roo provide a visual diagram of all its entities/relationships    forum.springsource.org

Does Spring Roo provide a visual diagram of all its entities/relationships After we use the command line to add entities, define relationships and generate code, is there a way for us ...

24. Spring Roo 1.2: is 'entity' (plain) command going to disappear?    forum.springsource.org

Spring Roo 1.2: is 'entity' (plain) command going to disappear? Hello: The Entity command seems to be substituted by 'entity jpa' in the current development release of Roo: Code: roo> help ...

25. roo command entity --class without version    forum.springsource.org

Hello, I would like to create an entity but not the associated version field. Do you have a syntax for the command to perform it. Cheers, Florian.

26. entity jpa command fails in STS Roo shell    forum.springsource.org

entity jpa command fails in STS Roo shell Hi, I'm running STS 2.8.0.RELEASE and just installed 1.2.0.RC1 [rev dcaa483] When I create a new Roo Project in STS and a new ...

27. can't I edit the methods in the "xxx_Roo_Entity.aj" file?    forum.springsource.org

can't I edit the methods in the "xxx_Roo_Entity.aj" file? I've tryed to edit the method "public void Roles.remove(){}" in the "Roles_Roo_Entity.aj" file,but it changed back when I open the "Roo shell". ...

28. Roo hangs on creating entity    forum.springsource.org

Roo hangs on creating entity After creating several entities and compiling, restarting roo and adding another entity causes roo to hang: Code: roo> entity --name EnvironmentBuild Created SRC_MAIN_JAVA\EnvironmentBuild.java Control-C does not ...

29. Suggestions: findByExample (QBE) for Roo Entities    forum.springsource.org

Suggestions: findByExample (QBE) for Roo Entities Hi all, I had a look at the Entity Aspect generated by Roo. It looks good to me and I believe it is very useful ...

30. using factory method pattern with a roo entity    forum.springsource.org

Hi, I just got surprised by Roo a little bit, I hope somebody can explain. I have a class Customer which is a RooEntity, for which I want to control the ...

31. roo hangs on creating a new entity    forum.springsource.org

roo hangs on creating a new entity This bug has been raised before, but there was no further discussion on it. http://forum.springsource.org/showthread.php?t=79487 I log on to roo and run the following ...

32. About "ROO-318: Add Strategy nature to Entity/Finder"    forum.springsource.org

Ben, we are interested to apply the Strategy pattern to scaffold process. We think it is the best way to customize the view without having to customize related add-ons. For example, ...

33. ROO shell deleted most of my entities    forum.springsource.org

I am using ROO 1.0.1 under STS. When I started up the ROO shell inside the ROO view, it deleted most of my entities. A few of them it managed. When ...

34. How to edit once-entered fields, entities etc using Roo shell    forum.springsource.org

There must be a way to edit once-entered fields or entities via the Roo shell. For example, say I typed in the fieldName as "temp" and later realized that it should ...

35. Versioning Entities with Roo    forum.springsource.org

Is there any way to get Roo to version entities using a minor version. What I want is for the generated classes to update entities using user defined version number like ...

36. ROO: how to create composit primary key in Entity    forum.springsource.org

Hi, What can I do if I need to create entity for a table in production DB (Oracle 10g) with composite primary key. For example: Code: CREATE TABLE TACCOUNT ( BRANCHID ...

37. Using Roo for Multi Tenant Apps - Entities    forum.springsource.org

Using Roo for Multi Tenant Apps - Entities I'm new to Roo (and fairly new to Spring) and one of the criteria I'm looking to fulfill is a solution for building ...

38. Order of entities in a Roo application?    forum.springsource.org

As an example, I would like to see the following order of entities on my web page when I run my Roo application: Physician Patient Encounter How does Roo determine the ...

39. entities with self generated uuids that work with Roo auto-generated tests?    forum.springsource.org

Hi, In our system we'd like to pre-generate UUID ids for our entities, this means that our entities get ids before persisting to database. Can Roo auto-generate tests to use our ...

40. Roo generating extraneous entity id    forum.springsource.org

Roo generating extraneous entity id I've got a set of entity objects (not created by Roo) that I want to expose using Roo web/mvc. These entities contain an id field and ...

41. Built a Roo Project with entities - now what?    forum.springsource.org

Built a Roo Project with entities - now what? Hi folks, So I have started to play around with Roo and I am really impressed with the tool. I was able ...

42. Person_Roo_Entity.aj contains: countPeople()    forum.springsource.org

Person_Roo_Entity.aj contains: countPeople() Hi, as a roo starter I just set up a simple example and tried to follow the generation process just by using the roo shell and simple editor. ...