The persistence aspect finally works! Now Roma Framework can search and create persistent object in transparent way. I've used the latest JPOX JDO implementation.
I've implemented the CRUD pattern and it works very well with Echo2 and its Ajax model reloading the resulting table without refreshing the page. Cool...
I've also changed the inheritance use of forms. Before all forms are derived strictly by the model, but now I've tested it's better create POJO forms and using domain objects per composition. Before:
class AccountNew extends Account
{
private String confirmPassword;
}
Now:
class AccountNew extends CRUDNew
{
private Account newValue;
private String confirmPassword;
}
The main reasons of this change are:
- Persistence aspect can confuse the derived non-persistent class used for view
- Can extend the pattern POJOs (like the CRUD, see above)
No comments:
Post a Comment