The ColdBox Engineering Team are proud to announce the first ever ColdBox Developers Week to conmmemorate the ColdBox Platform 3.5 launch and the upcoming ContentBox CMS launch.
It will be a week long series of FREE and live webinars hosted by the ColdBox Team and seasoned ColdBox developers from around the world. These sessions will cover from the basics and essentials of ColdBox and its internal libraries to very advanced topics like AOP, Cloud Development, ORM enhancements, Flex Integrations and so many more.
Read all about it in the engineering blog.
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!
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.
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: [email protected]. 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.