Category: ColdFusion



Just a little note that I will be presenting on ContentBox, our new open source CMS, in the San Francisco ColdFusion User Group March 2, 2012.  The meeting starts at 6:30 pm and we will be reviewing, installing and configuring ContentBox!  So if you will be in the area, come and join us, hang out and geek out!

Meetup link: http://www.meetup.com/bacfug/events/51163792/

Hope to see you there!

Have you experienced this incredibly odd error using ColdFusion ORM:

HibernateException – A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance

This is really cryptic and most likely you have a parent to child relationship and you are most likely wiping or wanting to wipe all the references of the child.  We usually can do this via:


// wipe out the children
parent.setChildren( [] )

We then proceed to maybe put more children into the collection:


parent.addChild( objX );
parent.addChild( objY );

// Now save
transaction{
entitySave( parent );
}

This is where you get that magical Hibernate error. The issue is that the existing collection is now de-referenced, you completely wiped it so Hibernate has no clue what to do with it. So to resolve this, just clear the collection instead and voila!


// use java
parent.getChildren().clear();
// or use CF
arrayClear( parent.getChildren() );

That’s it, this tells Hibernate that the collection is removed first and then you added some more children.

I am very excited to be lined up to present at the Houston User Group next week on our new project at Ortus Solutions, ContentBox.

For those of you who do not know what ContentBox is, here is a little insight.  ContentBox is our next major project here at Ortus Solutions, which is a highly modular content platform based on ColdBox architecture and modules.  It is a set ofColdBox modules that work in unison to provide you with blog, cms and development capabilities.  It is still in private alpha, but you can be part of it if you like by just requesting it: contentbox@ortussolutions.com.  The major difference than traditional blogs or cms, is that ContentBox is highly extensible via ColdBox features and event driven programming.  You can easily extend it and create other modules that function outside of ContentBox with their own DI, caching, SES, or extend the content as well.

We just released a free chapter of our DI training course so the entire ColdFusion community can benefit, so check it out: http://bit.ly/v7Igda!

Just my little contribution to the MXUnit project. Here is a little cheatsheet: http://ortus-public.s3.amazonaws.com/MXUnitCheatSheet.pdf

I just wanted to do a quick summary of this year’s CFCamp 2011 in Munich, Germany. This was truly a great 1 day event that was filled with great topics, great location and great networking. A big thank you to Michael Hnat and Contens for providing great facilities, and a great environment for this conference. I presented on how to create ColdFusion powered RESTful services, modeling them, documenting them and testing them using ColdBox Relax. We have posted our presentations and code demos here: http://blog.coldbox.org/post.cfm/cfcamp-2011-presentations

ColdBox Relax reaches version 1.5 so you can Relax while building RESTful services:

 

 

ColdBox Relax v1.5 from Luis Majano on Vimeo.

 

If you are local to the southern California area then please join us for our monthly meetings at the Inland Empire CFUG and learn about Couch and no-sql databases.  Jim Spoonmore, fellow Team ColdBox member, will join us and present on Couch.  So if you are in the Pomona area on Thursday around 7 pm, drop by!

Meeting Details

September 8th 2011 @ Cal Poly Pomona
Room 5-16 in Building 98C (campus map)
6:30PM – Doors open for food, drinks, and networking
7:00 PM  - Presentation starts

 

Just a little note that I will be presenting at the CFMeetup this June 30th at 6pm Eastern (3pm PST) on a topic dear to my heart: WireBox Dependency Injection and AOP!  Some come and check it out!

When: June 30th, 6pm Eastern (3pm PST)

Meeting URL: http://experts.acrobat.com/cfmeetup/

 

I just wanted to see if somebody can help me out something that has completely alluded me with CFBuilder 2.  Here is the scenario.

1. I have a server setup that points to this web root: /sites/cboxdev/core and maps to http://cboxdev.myserver
2. I have a project setup that points to this root: /sites/cboxdev/core/coldbox and is connected to the server above
3. So basically, whenever I open any CFC that points to a CFC: coldbox.system.* Builder complains it cannot find that resolution path.  However, the “coldbox” portion is the project iteself. So how can I tell builder that this project is the actual resolving root?

Does it make sense?

Powered by WordPress. Theme: Motion by 85ideas.