Ignoring fields in JPA with xml mappings
You’ve got a xml file that you need to persist to the database and you don’t really want to use low level parsing and jdbc.
- Use trang to create a xml schema for the xml files
- Use xjc to create the java objects
- Use jpa with xml mapping to persist so there’s no need to touch the generated source form xjc. For fields you don’t care about map them as transient.. e.g.
Spring roo reverse engineering HSQL
When “database introspect –schema no-schema-required” after setting up a hsql db you may get “no driver class available”.
Install the “wrapping” addon:
Regex for removing all roo mobile scaffold references
ScaffoldApp\.isMobile\(\) \? .*\.instance\(\) :
ScaffoldApp\.isMobile\(\) \? .*\.instance\(\)\R\t\t\t\t:
STS, AspectJ and eclipselink canonical model generation
I’ve been using Spring Roo together with GWT to create a fairly simple web app. The auto generated queries that Roo produces don’t use the JPA Criteria API. So I decided to throw in EclipseLink model generator.
For some reason the combo of STS+AspectJ+ModelGen stops the model generator kicking in. When I disabled the Aspect-J Compatibility, the EclipseLink model generator actually fired and created my models. I guess I should actually just use Maven…. :-)