Menu

orm_examples

Luis M. Villa

MILK ORM

Well, now, maybe this is the key feature that made you take a look at MILK. You won't find a complex ORM here. MILK does not provide referential integrity, lazy loading, graph traversing, etc.

It's mission is not to hide the database and let you program as if it didn't exist. MILK's target is to make your life easier withing reasonable bounds. Also, it will not teach you how to program, you are a capable professional it won't tell you how to do your job. So, in MILK's ORM you won't find:

  • An object oriented way to generate queries
  • An automatic way to save / update objects created in a session
  • A reference managing system
  • An object instance cache
  • ... anything that sounds like magic :P

Ok, then what will this framework give me? Let's see:

  • A way to fetch and save objects without writing SQL statements (although parts of SQL statemets may be specified)
  • Object <-> Table and Table <-> Object mapping using convention over configuration principle (although explicit mapping can be done)
  • Support for transactional and not transactional operations
  • Support for transparent logical deletion
  • Support for bulk delete
  • Support for bulk update

And that's it. You may think these are few features but hey! I've seen big applications written only with Apache DBUtils and working just fine (and developers loving it).

But I'll not try to convince you. Let's see how it works and then you'll decide if you like it.

Ok, Let's get to work!


Related

Wiki: examples_toc
Wiki: orm_querying
Wiki: transactions_and_queries

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.