Posts
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.
read morePosts
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:
osgi install –url http://spring-roo-repository.springsource.org/release/org/springframework/roo/wrapping/org.springframework.roo.wrapping.hsqldb/1.8.0.10.0001/org.springframework.roo.wrapping.hsqldb-1.8.0.10.0001.jar
read morePosts
Great article about weak references in java
http://weblogs.java.net/blog/2006/05/04/understanding-weak-references
read morePosts
Interesting posts on gold
The Only Thing We Have To Fear Is Fear Itself… And Governments Telling Us What To Fear: Why The Beginning Of The End Started With FDR’s Confiscation Of Gold
read morePosts
Regex for removing all roo mobile scaffold references
ScaffoldApp\.isMobile\(\) \? .*\.instance\(\) :
ScaffoldApp\.isMobile\(\) \? .*\.instance\(\)\R\t\t\t\t:
read morePosts
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….
read morePosts
Creating a Multi-Valued Auto-Complete Field Using GWT SuggestBox and REST
http://www.zackgrossbart.com/hackito/gwt-rest-auto/#bess
read morePosts
WLST links
http://blogs.oracle.com/bala/entry/wlst_best_practices
http://davidmichaelkarr.blogspot.com/2008/10/make-wlst-scripts-more-flexible-with.html
read more