AIS.PL database mapping tool (called DB Mapping Tool) is a set of Ant tasks intended to facilitate database access from Java applications.
For detailed description see this document.
Plugin for Maven also exists - see this overview.