21 März 2013

Generate TOs from Query

My SQL result mapper has a new feature:


ResultSet rs = stmt.executeQuery("SELECT NAME FROM EMPLOYEE");
ClassGenerator.generateFromResultSet("", null, "EmployeeNameTO", false, rs);


The ClassGenerator will generate a TO from any SQL SELECT query.

Check it out:
https://github.com/simasch/sqlresultmapper

Keine Kommentare: