tracker issue : CF-3123428

select a category, or use search below
(searches all categories and all time range)
Title:

We need a way to be able to use interceptors in ColdFusion ORM, things like postFlush is missing in the normal events

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)

Created: 02/24/2012

Components: ORM Support

Versions: 9.0.1

Failure Type: Engineering Work Item

Found In Build/Fixed In Build: 9.0.1 / 288037

Priority/Frequency: Trivial / All users will encounter

Locale/System: English / Win 2008 Web Server

Vote Count: 0

Problem Description:

I listed this once before under another bug and you have closed / deferred this. I hope this is going to be in ColdFusion 10, as there is code that I need to write and without the postFlsuh / preFlush it is impossible for me to be able to write this code.

I dont care if you cant or wont allow us to write our own interceptors for events, but for crying out loud give us all the other events please..

We need a way to be able to use interceptors in ColdFusion ORM, things like postFlush is missing in the normal events. And I think that a way to create our own interceptors would also be good.As per http://docs.jboss.org/hibernate/core/3.3/reference/en/html/events.htmlAs well as http://docs.jboss.org/hibernate/core/3.3/api/org/hibernate/event/package-summary.htmlThere is a lot of events in here that would be very handy to have, but we can't use because either it is not supported or we can't create or own interceptor.Even when trying something like this won't workmyInterceptor = createObject('java', 'com.something.interceptor.myInterceptor);ORMGetSessionFactory().openSession(myInterceptor);


Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3123428

Deployment Phase:	Release Candidate

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: ascott67
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

This will be a major enhancement. Can be taken up in the next release since it is too late for CF 10.
Comment by Himavanth R.
20567 | February 29, 2012 07:31:57 AM GMT
This is bullshit, I have been asking for this for 5 years now if not more. There is no way to write code that looks like this and works in ColdFusion. http://snippets.dzone.com/posts/show/7117 If there is a way to do this in ColdFusion then I would like to see a real world example. And since I first asked for it in the ColdFusion 9 beta, why is it too late for CF 10? It should have been on the road map for CF9.01
Comment by External U.
20568 | March 02, 2012 11:18:21 AM GMT
I think we can do with some better choice of works when adding notes. With regards to why it has been deferred, it is too late in the game for us to take it up for this release of ColdFusion but we will definitely evaluate this for the next release. Apart from internal discussions, one criteria we do look at when prioritizing bugs is the number of votes a bug has received as this helps us determine how many people are facing this issue.
Comment by Vamseekrishna N.
20569 | March 04, 2012 01:43:13 AM GMT
Sorry but I don't consider this fixed at all and to be honest I think it is a balls up to say the least. First I gave an example that uses 3 Event Interception points, that I had been trying to find a solution for. Now I get it is fixed only to find that the sample I gave, still can't be implemented because of a half implemented feature. No wonder we developers are getting tired of ColdFusion and Adobe. Now please explain how can I write this in ColdFusion, without all the Event interception points? http://snippets.dzone.com/posts/show/7117 As already noted in the notes...
Comment by External U.
20570 | February 23, 2014 03:14:21 AM GMT