Jadira is the home for Sousan and Chris Pheby's open source projects. These are reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Tag Cloud

User Type Presentation

A new presentation describing the design and development of the User Type library has been made available for download.

UserType is an Apache licensed library supporting the interoperability of Hibernate and two date and time libraries... Joda Time and JSR 310.


Release: User Type for Joda Time and JSR 310 Version 1.4

We've produced the 1.4 release of the User Type project.

This release is the first release of User Type to add support for Hibernate 3.6. This is achieved whilst retaining compatibility with older Hibernate releases, meaning that Usertype is currently the only solution for bringing together Joda Time and JSR 310 libraries with persitence using Hibernate.

This release also includes fixes for an incompatibility with Java SE 5.0, as well as refactoring PersistentDateTime into PersistentDateTimeWithZone. A new implementation of PersistentDateTime was recently added, which uses a single column and an implied UTC zone, so please be aware of this change when upgrading.

All users are invited to upgrade to this release.

For more information, visit the project pages on Sourceforge


Release: User Type for Joda Time and JSR 310 version 1.2

The 1.2 release of User Type has been produced.

To work around JSR 310 jars not yet being in Maven Central (as the specification is not yet finalised) this release is separated into Joda Time and JSR 310 jars. This means that Hibernate user types from the project for use with Joda Time can now be obtained from Maven Central. If you want the JSR 310 compatible jar, you can use the project's own Maven repository.

For more information, visit the project pages on Sourceforge


Eclipse Helios

Eclipse Helios is the simultaneous release of Eclipse 3.6 and a bundle of Eclipse projects.

This post updates my previous quick configuration howtos for Ganymede and Galileo, helping to quickly get up and running with essential Eclipse plugins. The Helios release is ready for use with many key thirdparty plugins already working, a much improved situation on the original release of Galileo. The recipe is for Windows - extrapolate as required.

1. Download Eclipse IDE for Java Developers (either eclipse-java-helios-SR2-win32.zip for 32-bit Windows, or eclipse-java-helios-SR2-win32-x86_64.zip for 64-bit Windows). These can be found via http://www.eclipse.org/downloads/

2. Make a folder for Eclipse somewhere called 'Eclipse', and unzip the Eclipse SDK zip file to the parent folder. I typically create c:\Java\Eclipse and unzip to c:\Java

3. Create a shortcut to Eclipse, for example:

C:\Java\Eclipse\eclipse.exe -clean -vm "C:\Java\JSE6\bin" -vmargs -Xmx1536m -XX:MaxPermSize=256m

or, potentially using Server VM / ergonomics:

C:\Java\Eclipse\eclipse.exe -clean -vm "C:\Java\JSE6\bin" -vmargs -server -Dcom.sun.management.jmxremote -Xmx1536m -XX:MaxPermSize=256M -XX:+UseParallelGC -XX:+UseParallelOldGC

(where the ‘vm’ argument points to your appropriate Java runtime with Eclipse - this should be at least version 5.0 and should be 32-bit or 64-bit as appropriate).

NB. Best practice is to point to a JDK rather than a JRE location.

4. Next, search for new features using the Helios Updates (with "Show the latest version" selected).

Pick the appropriate platform features - you can safely select everything. Typical selection could be Business Intelligence Reporting and Charting, Database Development, Programming Languages (Eclipse Java Development Tools, Eclipse XML Editors and Tools and JavaScript Development Tools), Test and Performance, Web XML and Java EE Development (excluding PHP Development Tools (PDT) SDK Feature).

Also, from the Mylyn for Eclipse Helios select all updates except C/C++ Development, Mylyn SDK and Mylyn WikiText SDK).

5. After restarting again, the following update sites can be used to add Mylyn Extras, AspectJ Developer Tools, SvnKit, SubClipse, M2 Eclipse, QuantumDB, PMD, Spring Tools Suite, JBoss Tools, and Log4E:

AJDT http://download.eclipse.org/tools/ajdt/36/update

SvnKit http://eclipse.svnkit.com/1.3.x/
SubClipse http://subclipse.tigris.org/update_1.6.x

EGit http://download.eclipse.org/egit/updates/

Eclipse GEF (for release 3.6.x select GEF, Zest and Draw2d only) http://download.eclipse.org/tools/gef/updates/releases/
M2 Eclipse http://m2eclipse.sonatype.org/sites/m2e
M2 Eclipse Extras http://m2eclipse.sonatype.org/sites/m2e-extras
QuantumDB http://quantum.sourceforge.net/update-site
Qwickie http://qwickie.googlecode.com/svn/trunk/qwickie.updatesite/

JBoss Tools http://download.jboss.org/jbosstools/updates/stable/helios/ (only Context and Dependency Injection Tools (all instances), Freemarker IDE (both instances), Hibernate Tools (all instances), JBoss Tools RichFaces, JBossAS Tools, Seam Tools, XULRunner, TPTP Profile on JBoss Server, JBoss Tools RichFaces (both instances), JBossAS Tools (both instances), SeamTools (both instances), JBoss WebServices Tools (both instances), JBoss Birt Integration, Maven Support).
then restart

PMD http://pmd.sourceforge.net/eclipse (only PMD for Eclipse 3)
Groovy http://dist.springsource.org/release/GRECLIPSE/e3.6/  (except SDK)
EclipseLink (JPA) http://download.eclipse.org/rt/eclipselink/updates/
Eclipse Target Management Project (all except RSE WinCE Services and Examples & SDKs and Unit Tests) http://download.eclipse.org/dsdp/tm/updates/3.2
Atlassian Connector (all except optional Dependencies) http://update.atlassian.com/atlassian-eclipse-plugin/e3.6
then restart

SpringSource Tool Suite [RC] http://dist.springsource.com/milestone/TOOLS/update/e3.6
then restart

Log4E http://log4e.jayefem.de/update (note that the free version cannot be installed using the update site)
Azzurri Clay http://www.azzurri.co.jp/eclipse/plugins
JavaCC Plugin http://eclipse-javacc.sourceforge.net/
then restart

Apache Directory Studio http://directory.apache.org/studio/update/1.x
TestNG http://beust.com/eclipse

Android Development Tools https://dl-ssl.google.com/android/eclipse/
Scala IDE http://download.scala-ide.org/nightly-update-helios-2.8.0.final
BndTools http://bndtools-updates.s3.amazonaws.com/
then restart

6. Other interesting plugins you might want to consider could include:

Checkstyle http://eclipse-cs.sourceforge.net/update/
LogWatcher http://graysky.sourceforge.net/
Color Editor http://www.gstaff.org/colorEditor/download.html

7. A couple of plugins are best installed by hand:

Download Jar Class Finder version 2.1.0 from http://www.alphaworks.ibm.com/tech/jarclassfinder/download and copy the Jar to the Eclipse/dropins/plugins subdirectory.
Download Tarlog Plugin 1.4.2 from http://code.google.com/p/tarlog-plugins/ (I used tarlog.eclipse.plugins_1.4.2.jar) and copy the Jar to the Eclipse/dropins/plugins subdirectory.

8. Configure eclipse.ini, for example, with the following:



Release: Maven Dependency Navigator Version 1.0 beta 9

Maven Dependency Navigator is a new Jadira project.

Maven Dependency Navigator provides a straightforward way to visualise and track Maven dependencies - including duplicate dependencies and conflicting versions.

The project builds on Maven Dependency Browser, a standalone Swing GUI which we've found to be especially useful in the Release Management and QA function. With Maven Dependency Browser being no longer maintained, we thought it would be useful to bring it up to date and start working on improving it, our goal being to provide a tool useful for visualising Maven builds for users who are not doing day to day development.

This release establishes the project on Sourceforge, and incorporates a new documentation site. The project is updated to be built with the current Maven release (2.2.1) and resolves an issue where groupId and version were not being correctly inherited in multi-module projects.

Download Maven Dependency Navigator.