In my previous post on tracking database changes I described how you can log all database changes for a quick
orm system. I also mentioned you can do a similar thing for cborm
systems which are based on coldfusion ORM (hibernate). I have used cborm
a lot in the past, and even did some presentations on orm, but I noticed there are quite some people who don’t like or even hate the coldfusion orm, for being slow, memory consuming and hard to understand. I am not sure if this reputation is well deserved. Yes, error messages are hard to understand, but so are the errors in quick
(if you are not the author of the module 🙂 . Initially Adobe did a bad job on default settings for ORM, which made it harder to understand and Lucee ruined my ORM setup when upgrading from lucee 4 to 5, and it took them several years to fix three lines of code. But nowadays, there is an update for the hibernate engine in Lucee, and more important: the cborm
library does a very nice job in hiding the hard parts of database transactions in ORM, and it opens up the Criteria API from hibernate. Once you know how to handle cborm
it is a lot faster than quick
and it has a different abstraction for your entities. I will leave the details on performance for another post. Just want to mention both quick
and cborm
have their place, and in this post I will show you which steps you should take to track your database changes with cborm
.
Recent Comments