Persist (Java tool): Difference between revisions

Content deleted Content added
UserDoe (talk | contribs)
m Reverted 1 edit by 69.66.56.89 identified as vandalism to last revision by Rufiao. using TW
SmackBot (talk | contribs)
m Standard headings &/or gen fixes. using AWB
Line 13:
}}
 
Persist is a [[Java_Java (programming_languageprogramming language)|Java]]-based [[Object-relational_mappingrelational mapping|ORM]]/[[Data_Access_ObjectData Access Object|DAO]] tool. It provides only the minimal amount of functionalities necessary to map objects or maps from database queries and to statement parameters.
 
Persist works around a java.sql.Connection object. This means that it does not care about customer query languages (it uses plain [[SQL]] with placeholders, as PreparedStatement objects use), connection pool handling, transaction handling (for the most part), and so on. This also means it is very flexible, and can be integrated with any code that depends on [[JDBC]] (including code that already use another [[Object-relational_mappingrelational mapping|ORM]]/[[Data_Access_ObjectData Access Object|DAO]] tool).
 
Persist does not require explicit mappings from [[POJO]]s to database tables. As long as there is some sort of naming conventions that relate database names with [[POJO]] names, Persist will require virtually no mappings. It can, however, be instructed to map Java classes and fields to database tables and columns using annotations.
Line 85:
persist.executeUpdate("delete from customer where id in (?,?)", 10, 20);
 
== See Also also==
*[[Hibernate_%28Java%29Hibernate (Java)|Hibernate]]
*[[iBATIS|iBATIS]]
 
==External links ==
*[http://code.google.com/p/persist/ Persist @ Google Code]
 
{{compu-lang-stub}}
 
[[Category:Computer languages]]