Blog

Luis Majano

August 12, 2010

Spread the word


Share your thoughts

There have been several changes from the ORM support classes from M5 to M6 that I will recap here thanks to muji in our google group and also to help out in the transition.  Our ORM support services are maturing every day and moving to a great solid release for 3.0.0 Final.  So let’s recap some of the changes:

 

  • Entity dependency injection are now controller and configured via the Autowire interceptor and not the ORM event handler anymore.  However, the ORM event handler MUST be enabled first.
  • findWhere() and findAllWhere() method parameters have changed, requiring a tweak in your code to account for the change.  Instead of accepting any add'l arguments besides orm entityName as the criteria, both functions now expect a "criteria" structure.
  • new() now takes in a properties argument that will be used to populate the new entity with
  • find() is now findIt() to not mess with the CF functions
  • get() now returns a new() entity if passed id=0 for convenience
  • deleteByID() returns # of rows deleted instead of boolean
  • new deleteAll() function
  • new validate(entity) function calls underlying Hibernate Validator() (EXPERIMENTAL), we are still evaluating our validation frameworks, but we would like to stay very very close to what Hibernate and JPA already offer. (http://links.mkt3261.com/ctt?kn=1&m=3181979&r=MTM5NTYzMTU5MjMS1&b=0&j=MTg5NjgzNjAyS0&mt=1&rt=0)  All help on this area is welcomed
  • new inline populate() functions: populate(), populatFromXML(), populateFromJSON(), populateFromQuery()
  • new() creations now announce an ORMPostNew interception if the ORM event handler has been created
  • New service property: EventHandling used by the service to announce certain things like ORMPostNew interceptions.

I believe these are the changes, am I missing something, please comment about it?

Add Your Comment

(1)

Aug 13, 2010 11:42:14 UTC

by Brett

I believe get() also returns a new entity if the id specified is an empty string.

Recent Entries

BoxLang 1.0.0 Beta 7 Launched

BoxLang 1.0.0 Beta 7 Launched

We are pleased to announce the release of BoxLang 1.0.0-Beta 7! This latest beta version includes improvements and essential bug fixes, but more importantly it certifies the execution of ColdBox HMVC and TestBox.

What is BoxLang?

BoxLang is a modern dynamic JVM language that can be deployed on multiple runtimes: operating system (Windows/Mac/*nix/Embedded), web server, lambda, iOS, android, web assembly, and more. BoxLang combines many features from different progr

Luis Majano
Luis Majano
July 26, 2024
New BoxLang Feature: Java Method References and Higher-Order Functions

New BoxLang Feature: Java Method References and Higher-Order Functions

We’ve added more goodies to our BoxLang Java interop: method references and higher-order functions. CFML has never let you do these things, making Java Interop feel like a second-class citizen. But with BoxLang, we’re elevating Java integration to a new level.

Maria Jose Herrera
Maria Jose Herrera
July 26, 2024
Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Are you a CFML developer looking to take your skills to the next level? Look no further than the ColdBox from Zero to Hero Virtual Live Training! This intensive two-day course will equip you with the knowledge and expertise to build robust and scalable applications using ColdBox 7, the latest version of the most popular CFML MVC framework.

What You'll Learn:

  • Master the Fun...

Cristobal Escobar
Cristobal Escobar
July 24, 2024