TODO List (JSF, Maven, Spring, JDBC)

Download Sources

Example of how to use generated data access code

DataStoreManager dm = new DataStoreManager();

dm.open();

TasksDao dao = dm.createTasksDao();

List<Task> tasks = dao.getTasks(g_id);

// process the list 

dm.close();

XML meta-program

<dto-classes>	
	<dto-class name="Group" ref="getGroups.sql"/>
	<dto-class name="Task" ref="tasks"/>
</dto-classes>
<dao-class>		
	<crud table="GROUPS" dto="Group">
		<create method="createGroup" />
		<update method="updateGroup" />
		<delete method="deleteGroup" />
	</crud>
	<query-dto-list method="getGroups" ref="getGroups.sql" dto="Group" />
</dao-class>
<dao-class>		
	<crud table="TASKS" dto="Task">
		<create method="createTask" />
		<update method="updateTask" />
		<delete method="deleteTask" />
	</crud>
	<query-dto-list method="getTasks(g_id)" ref="getTasks.sql" dto="Task" />
</dao-class>