Finally I got my app working, with oracle sequence defined for every entity. This time without push in refactoring and adding @GeneratedValue and @SequenceGenerator annotations in the format I specified above. There are a few things which you need to be careful while creating an app with oracle. If your keys have a different name other than default "id", you need to define those while generating your entity otherwise, roo will assume that "id" is the default field and try to run an insert using that field resulting in a failure. Here is how you do it:
After entity gets generated, you have to add @GeneratedValue and @SequenceGenerator annotations.
field number <name of your PK that uses sequence> --notNull --column <database column name> --type java.lang.Long
Make sure that version field is defined for all entities as JPA uses it for optimistic locking.
I m making use of spring mvc as I ran into
with gwt. I tried to troubleshoot, but had to get one solution tried out so went with mvc. I will try to find a solution for gwt error.
The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin run are missing or invalid
I have to customize my current app, hope there are some best practices posted some where!