I found the solution. In fact add-ons are not made for this. The way to go is just packaging my controller as a jar.
After, I just need to add the dependency to the pom.xml and edit the...
Type: Posts; User: jeremi; Keyword(s):
I found the solution. In fact add-ons are not made for this. The way to go is just packaging my controller as a jar.
After, I just need to add the dependency to the pom.xml and edit the...
I'd like to reuse a controller across multiple Roo projects. Add-on seems to be the way to do, but I did not find any exemple of having a controller in an Add-on. Is it possible, is it the right way...
I like to live on the edge :) I'm using roo 1.1.0.M1.
I think
com.springsource.javax.persistence has been replaced by
org.hibernate.javax.persistence
<dependency>
...
Great Thanks!
If anyone is interested by the solution, add to the class:
@PersistenceContext
EntityManager entityManager;
And you can do:
Using the petstore demo, I'm doing :
resp.put("Owner", Owner.countOwners());
resp.put("Pet", Pet.countPets());
resp.put("Vet", Vet.countVets());
...
Hi,
I'm writing an add-on to monitor entities of a roo project.
To do this, I'd like to be able to list all the entity class and be able to execute query on them suing the persistence API.
My...