Hi to all,
I found a problem during the generation of my GWT-ROO web based project;
I tried to generate a GWT UI on a simple JPA set of classes.
The problem (I suppose) was due to a @ManyToMany reference in my table:
@ManyToMany(cascade = CascadeType.ALL)
private Set<it.expense.domain.HouseholdsItem> items = new java.util.HashSet<it.expense.domain.HouseholdsItem >();
Roo didn't generate the corresponding GWT class: it.expense.gwt.request.SetRecord (missing)
Is this a bug?
Rgds
Michele
Error log:
~.domain.HouseholdsItem roo> perform package
[Thread-4] [INFO] Scanning for projects...
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [INFO] Building expense
[Thread-4] [INFO] task-segment: [package]
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [INFO] [aspectj:compile {execution: default}]
[Thread-4] [ERROR] The import it.expense.gwt.request.SetRecord cannot be resolved
[Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] [ERROR] SetRecord cannot be resolved to a type
[Thread-4] [ERROR] The method getItems() is undefined for the type HouseholdsItemRecord
[Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] [ERROR] HouseholdsItemRecord.items cannot be resolved
[Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDriv enStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[Thread-4] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethod MockingControl has not been applied [Xlint:adviceDidNotMatch]
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [ERROR] BUILD ERROR
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [INFO] Compiler errors :
[Thread-4] error at import it.expense.gwt.request.SetRecord;
[Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:10:0::0 The import it.expense.gwt.request.SetRecord cannot be resolved
[Thread-4] error at Property<it.expense.gwt.request.SetRecord> items = new com.google.gwt.valuestore.shared.Property<it.expen se.gwt.request.SetRecord>("items", "Items", it.expense.gwt.request.SetRecord.class);
[Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:26:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] error at Property<it.expense.gwt.request.SetRecord> items = new com.google.gwt.valuestore.shared.Property<it.expen se.gwt.request.SetRecord>("items", "Items", it.expense.gwt.request.SetRecord.class);
[Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:26:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] error at abstract SetRecord getItems();
[Thread-4] ^^^^roo>
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:36:0::0 SetRecord cannot be resolved to a type
[Thread-4] error at items.setInnerText(String.valueOf(record.getItems( )));
[Thread-4] ^^^
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/scaffold/generated/HouseholdsItemDetailsView.java:87:0::0 The method getItems() is undefined for the type HouseholdsItemRecord
[Thread-4] error at columns.add(new PropertyColumn<HouseholdsItemRecord, it.expense.gwt.request.SetRecord>(HouseholdsItemRe cord.items, new Renderer<it.expense.gwt.request.SetRecord>() {
[Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/scaffold/generated/HouseholdsItemListView.java:56:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
[Thread-4] error at columns.add(new PropertyColumn<HouseholdsItemRecord, it.expense.gwt.request.SetRecord>(HouseholdsItemRe cord.items, new Renderer<it.expense.gwt.request.SetRecord>() {
[Thread-4] ^^^^^^^^^^^^^^^^^^^^^
...
[Thread-4] useholdsItem roo>
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [INFO] For more information, run Maven with the -e switch
[Thread-4] [INFO] ------------------------------------------------------------------------
[Thread-4] [INFO] Total time: 12 seconds
[Thread-4] [INFO] Finished at: Fri May 28 13:34:05 CEST 2010
[Thread-4] [INFO] Final Memory: 19M/75M
[Thread-4] [INFO] ------------------------------------------------------------------------


Reply With Quote