CFWheels callbacks in Hibernate?

28 views
Skip to first unread message

Joe Genshlea

unread,
Feb 14, 2017, 3:33:17 PM2/14/17
to CFWheels

Hello -

Apology for tangential post:

I'm a data modeler/Integration architect at my day job (paying job).  I've been using CFWheels for some side projects but am not fluent in too many languages other than CFML.

At my day job the Java engineers are asking me to implement a whole bunch of triggers to essentially keep an audit trail. In other words when a row is updated in a table they opened a story for me to move the old row to another table using database triggers.  The DBA where I work is pretty steadfast in objection to triggers, and I agree with him.    In CFWheels, I could do this using object callbacks.  We use the hibernate ORM here.  Is there not a similar function in Hibernate?  I googled it and it appears that Hibernate has callbacks, but I wanted to throw this out here as this is the only group that I participate in with any regularity and I noticed that there are pretty serious programmers in this group that probably would know.

Thanks for your help

Joe.
 

Andrew Bellenie

unread,
Feb 15, 2017, 11:02:13 AM2/15/17
to ColdFusion on Wheels
Hi Joe

Callbacks are called 'events' in Hibernate, one example is preInsert(). 

However audit logs are a common use for triggers so I don't know what the objection is.

Andy

--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+unsubscribe@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at https://groups.google.com/group/cfwheels.
For more options, visit https://groups.google.com/d/optout.

Joe Genshlea

unread,
Feb 15, 2017, 11:53:55 AM2/15/17
to CFWheels
Thanks for the reply, I'll suggest that in our next scrum.

To avoid a really off topic discussion, I'll just say that our CTO forbids use of stored procs which includes UDFs and triggers.   He doesn't like any code, whether business logic or otherwise at the DB tier  

On Wednesday, February 15, 2017 at 8:02:13 AM UTC-8, Andrew Bellenie wrote:
Hi Joe

Callbacks are called 'events' in Hibernate, one example is preInsert(). 

However audit logs are a common use for triggers so I don't know what the objection is.

Andy
On 14 February 2017 at 20:33, Joe Genshlea <j...@revolution-wines.com> wrote:

Hello -

Apology for tangential post:

I'm a data modeler/Integration architect at my day job (paying job).  I've been using CFWheels for some side projects but am not fluent in too many languages other than CFML.

At my day job the Java engineers are asking me to implement a whole bunch of triggers to essentially keep an audit trail. In other words when a row is updated in a table they opened a story for me to move the old row to another table using database triggers.  The DBA where I work is pretty steadfast in objection to triggers, and I agree with him.    In CFWheels, I could do this using object callbacks.  We use the hibernate ORM here.  Is there not a similar function in Hibernate?  I googled it and it appears that Hibernate has callbacks, but I wanted to throw this out here as this is the only group that I participate in with any regularity and I noticed that there are pretty serious programmers in this group that probably would know.

Thanks for your help

Joe.
 

--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.

Andrew Bellenie

unread,
Feb 15, 2017, 6:23:29 PM2/15/17
to ColdFusion on Wheels
Ah. No further comment :)

To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages