Fuck ORM

Let me be the first to say that ORM (like Propel) is ridiculous, overengineered nonsense. SQL is already simple. In fact, it was originally designed so that (competent) non-computer people could easily generate reports from a RDBMS. So why does anyone think it’s a good idea to add unnecessary overhead and complexity to something that already works well? Oh yeah, because ORM makes it possible to write your own blog in 15 minutes. Wow. Totally awesome dude.

3 Responses to “Fuck ORM”


  • > Propel is really quite simple to use. Basically, you need to define your data model in XML

    Yuck.

    I know I sound like a Rails fanboy, but you should really check out ActiveRecord. No configuration necessary–it’s all based on your table structure.

    But then again, you’d have to switch your entire project to Rails and that’s probably not feasible.

  • dont mind me. i was just really annoyed after having spent hours trying to get something to work in propel that i could have done in 5 minutes with sql.

  • Hold the phone.

    Hibernate is the best, and I mean THE best persistience layer i’ve ever used. I appreciate Ruby on Rails ActionModels (whatever they’re called) – but I don’t develop ruby that much at the moment.

    Hibernate removes a layer of complexity (JDBC) – or at least the dealing with it side of things,and provides an easily resuable, totally abstracted object-relation mapping layer which is absolutely awesome to use in every way, from exception handling, to unit testing, to actual visualisation of your data model instead of a bunch of stupid select statements.

    HQL is a bit pointless, but I can see the need for it (db independence anyone?). Its transaction handling is great, and don’t even get me started on query by example! Finally something which removes a level of complexity from J2EE. So required.

    I also love spring.

Leave a Reply