{"repo":"dieselpoint/norm","free":true,"listed":false,"github":"https://github.com/dieselpoint/norm","clone":"git clone https://github.com/dieselpoint/norm.git","description":"Access a database in one line of code.","language":"Java","stars":216,"topics":["database","sql","java","jdbc","orm"],"license":null,"category":"databases-storage","readme_excerpt":"Norm Read a blog post on this project. Norm is a simple way to access a JDBC database, usually in one line of code. It purges your code of the complex mess that is Hibernate, JPA, and ORM. Lots of people think that complex ORMs are a bad idea. Here it is: Get Started Configure your system. Start with this sample code. Overview Norm is an extremely lightweight layer over JDBC. It gets rid of large amounts of boilerplate JDBC code. It steals some ideas from ActiveJDBC, which is a very nice system, but requires some very ugly instrumentation / byte code rewriting. Why? Sometimes the most important thing about writing software is knowing when to stop. A solution that gets you 90% of the way is often good enough, because the other 90% isn't worth the hassle. In this case, Norm gives you a fast and convenient way to do select, insert, update and delete, and when you need more, you just drop into straight SQL. Norm returns results as a list of POJOs or as a List of Map objects, whichever you prefer. POJOs are fabulous, truly fabulous: Populating them is really fast with the newer JVMs. You can use them for declaratory data validation. Using Jackson, you can serialize them to JSON. which means that, yes, you can use the same class to fetch a record from a database and then create JSON from it. Sample Code There's a full example here. The Person class: You can modify your database using .insert(), .upsert(), .update(), .delete(), and .sql().execute(): When you need more than this, jus","default_branch":null,"files":null,"tree":[],"storefront":"/r/dieselpoint","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dieselpoint/norm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}