spring-roo
Spring Roo is a next-generation rapid application development tool for Java developers. It focuses on higher productivity, stock-standard Java APIs, high usability, avoiding engineering trade-offs and facilitating easy Roo removal.
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 a command or will I have to start from scratch?
Source: (StackOverflow)
I have recently been spending some time looking over projects contained in the Spring 4.0 ecosystem and have recently come across the documentation for Spring Boot. It appears that Boot has a bunch of nice features for getting a Spring application up and running quickly, including the ability to auto configure and run embedded application servers in a simple .jar file. I realize that Roo is meant to be more of a CLI tool for quickly prototyping a Spring application and does not take as much of an 'opinionated' approach as Boot. Despite these differences, both tools have the end goal of making it easier to stand up a Spring application from scratch, so my question is the following: Is Spring Boot meant to replace Spring Roo in the Spring ecosystem, or will they both continue to co-exist with the same level of support?
Source: (StackOverflow)
I'm new to spring mvc, roo and hibernate.
I'm trying to create two tables with 1:M relationship.
For example,
I want two entities, Person and Car. One person can have many cars.
I've created entities using Roo
entity --class ~.domain.Person
field string Name
entity --class ~.domain.Car
field string Name
field reference --fieldName owner --type ~.domain.Person
field set --fieldName ownedCars --type ~.domain.Car --class ~.domain.Person --cardinality ONE_TO_MANY
Generated class for car:
@RooJavaBean
@RooToString
@RooEntity
public class Car {
private String Name;
@ManyToOne
private Person owner;
}
Generated class for Person
@RooJavaBean
@RooToString
@RooEntity
public class Person {
private String Name;
@OneToMany(cascade = CascadeType.ALL)
private Set<Car> ownedCars = new HashSet<Car>();
}
However, in the database, there are 3 tables (insted of two)
Table CAR (as expected)
CREATE TABLE "TEST"."CAR"
(
"ID" NUMBER(19,0),
"NAME" VARCHAR2(255 BYTE),
"VERSION" NUMBER(10,0),
"OWNER" NUMBER(19,0)
)
Table PERSON (as expected)
CREATE TABLE "TEST"."PERSON"
(
"ID" NUMBER(19,0),
"NAME" VARCHAR2(255 BYTE),
"VERSION" NUMBER(10,0)
)
and also PERSON_OWNED_CARS (which is not expected, it's not many to many relationship)
CREATE TABLE "TEST"."PERSON_OWNED_CARS"
(
"PERSON" NUMBER(19,0),
"OWNED_CARS" NUMBER(19,0)
)
Why is the last table generated? What is the purpose of the last table, it's not many to many relationship? Can it be avoided? Am I doing something wrong?
Source: (StackOverflow)
I've been working on GWT projetcts for a few months now and I decided to give a try to this Spring Roo thing. I noticed that to go from 0 to the same results as with Roo it can take very long. My first thought was: "this is great"!
But once you've setup a couple of persistent entities and Roo generates your scaffolding for GWT and you have some very basic layout but a huge amount of code. Then what? You stop using Roo and go on by hand? The UI is nice but is very basic.
I don't want to modify things by hand since I don't want to mess up Roo generation. So I just remove all Roo stuff and I fall to the "slow" mode again.
Has anyone created a relatively complex application with Spring Roo + GWT?
I'm not very familiar with Spring so it might get ugly (used to GWT + GXT + DataNucleus + Guice/Gin + Gilead). Do you recommend staying away from Roo in such a case?
From my point of view, Roo is good for generating the domain layer boilerplate since this is very tedious, but that's it.
Thank you!
Source: (StackOverflow)
I used to use Roo for starting new projects and want to advocate for in our company, however I've stumbled upon the fact that it does not support Java 8 and there is a ticket for it: https://jira.spring.io/browse/ROO-3505
I found it some time ago and recently I went to check if it was updated and was surprised that it is still there. I paid attention though that the latest version of Spring Roo was released in January 2014 (1.2.5) and there were no more bug fixes or feature releases since.
It is especially strange in the light of the fact that recent Spring Core was significantly updated to support Java 8 last year (version 4.0.0 was released in December 2013)
Does it mean that Spring Roo project is dead and Spring Source has no plans to support it?
Source: (StackOverflow)
I have a Spring application which uses JPA (Hibernate) initially created with Spring Roo. I need to store Strings with arbitrary length, so for that reason I've annotated the field with @Lob:
public class MyEntity{
@NotNull
@Size(min = 2)
@Lob
private String message;
...
}
The application works ok in localhost but I've deployed it to an external server and it a problem with encoding has appeared. For that reason I'd like to check if the data stored in the PostgreSQL database is ok or not. The application creates/updates the tables automatically. And for that field (message) it has created a column of type:
text NOT NULL
The problem is that after storing data if I browse the table or just do a SELECT of that column I can't see the text but numbers. Those numbers seems to be identifiers to "somewhere" where that information is stored.
Can anyone tell me exactly what are these identifiers and if there is any way of being able to see the stored data in a @Lob columm from a pgAdmin or a select clause?
Is there any better way to store Strings of arbitrary length in JPA?
Thanks.
Source: (StackOverflow)
I defined a field in Roo with:
field number --fieldName firstNum --type java.lang.Integer
But I really wanted to define it with --notNull.
Can I update this in Roo, or do I have to update the generated files manually outside of the Roo console?
Source: (StackOverflow)
I'm new to Spring MVC and Spring Roo.
What is field enum?
How can I enumerate all allowed values?
Is it implemented using lookup table or check constraint?
Source: (StackOverflow)
I have been using Groovy on Rails for CRUD applications. I am starting a new project where we are not allowed to use Grails anymore (we have a list of allowed jars and grails
is not there).
I am considering using Spring ROO or JBoss Seam. How do they compare? What are their major strengths and weaknesses?
Source: (StackOverflow)
Despite all I've read, I still can't figure out what Spring Roo actually is, and that's after reading the first chapter of Spring Roo In Action, What is Spring Roo?! I understand the motivation for simplifying the process of developing a Spring application, but what does Spring Roo actually do?
Can someone summarize the contents of that first chapter, specifically how Spring Roo reduces the complexity of developing a Spring app? The authors will probably see this, so do a good job!
Source: (StackOverflow)
I switched from q4e Helios to Indigo m2e plugin and my Maven 2 project no longer works. I had a ROO-generated Spring MVC project.
This is what I get:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:test-compile (execution: default, phase: process-test-sources)
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution: default, phase: process-sources)
Any insight is greatly appreciated. Thank you.
Source: (StackOverflow)
Trying to follow Spring roo tutorial steps I perform:
$ mkdir sample
$ cd sample
$ roo
roo> script --file filename.roo
roo> quit
$ mvn tomcat:run
and when I launch mvn tomcat:run
I get hanged up console on INFO: Starting Coyote HTTP/1.1 on http-8080
because this port is busy. Where can I change 8080 port to another one(I tried to change tomcat port, didn't find anything in the maven folder , .m2 folder and in the project folder)?
Thanks in advance for any help.
Source: (StackOverflow)
I'm evaluating Spring-Roo to use in one of my projects but I'm not sure how can it work within a team.
- Everybody in the team can use the roo
console?
- How do you commit your changes to
svn?
- How do you manage merges and
branching?
Thanks!
Source: (StackOverflow)
I recently stumbled upon Play framework while evaluating frameworks to use in a project.
I need to use Java language and JVM (so grails is not an option).
From initial impression Play framework looks very similar to Django (or Rails), but Spring Roo looks interesting because I use Spring framework for core components.
Is there any advantage of using Spring Roo if i already use core Spring framework (say for e.g. integration)?
Is there any known major issues with Spring Roo? (e.g. like losing control over code as it generates for us)
Source: (StackOverflow)