VMware Cloud Community
admin
Immortal
Immortal

hq r1367 - trunk/src/org/hyperic/hibernate

0 Kudos
2 Replies
jtravis_hyperic
Hot Shot
Hot Shot

Instead of adding all these hacks, why don't we just implement the
Auditable interface as suggested in the Hibernate forums?

It wasn't reasonable for our ported entity beans, but it makes sense
for anything new that is developed.

-- Jon


On Nov 16, 2006, at 4:47 PM, youngl@hyperic.com wrote:

> Author: youngl
> Date: 2006-11-16 16:47:46 -0800 (Thu, 16 Nov 2006)
> New Revision: 1367
> URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=1367
>
> Modified:
> trunk/src/org/hyperic/hibernate/HypericInterceptor.java
> Log:
> set modified to true
>
> Modified: trunk/src/org/hyperic/hibernate/HypericInterceptor.java
> ===================================================================
> --- trunk/src/org/hyperic/hibernate/HypericInterceptor.java
> 2006-11-17 00:25:42 UTC (rev 1366)
> +++ trunk/src/org/hyperic/hibernate/HypericInterceptor.java
> 2006-11-17 00:47:46 UTC (rev 1367)
> @@ -94,6 +94,7 @@
> } else if (curState[i] instanceof EscalationState) {
> if (prevState == null || !curState[i].equals
> (prevState[i])) {
> ((EscalationState)curState[i]).setModifiedTime
> (ts);
> + modified = true;
> }
> }
> }
>


0 Kudos
admin
Immortal
Immortal

Good, I was planning come back to this as soon as I make progress with
escalation runtime.

Jon Travis wrote:
> Instead of adding all these hacks, why don't we just implement the
> Auditable interface as suggested in the Hibernate forums?
>
> It wasn't reasonable for our ported entity beans, but it makes sense
> for anything new that is developed.
>
> -- Jon
>
>
> On Nov 16, 2006, at 4:47 PM, youngl@hyperic.com wrote:
>
>> Author: youngl
>> Date: 2006-11-16 16:47:46 -0800 (Thu, 16 Nov 2006)
>> New Revision: 1367
>> URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=1367
>>
>> Modified:
>> trunk/src/org/hyperic/hibernate/HypericInterceptor.java
>> Log:
>> set modified to true
>>
>> Modified: trunk/src/org/hyperic/hibernate/HypericInterceptor.java
>> ===================================================================
>> --- trunk/src/org/hyperic/hibernate/HypericInterceptor.java
>> 2006-11-17 00:25:42 UTC (rev 1366)
>> +++ trunk/src/org/hyperic/hibernate/HypericInterceptor.java
>> 2006-11-17 00:47:46 UTC (rev 1367)
>> @@ -94,6 +94,7 @@
>> } else if (curState[i] instanceof EscalationState) {
>> if (prevState == null ||
>> !curState[i].equals(prevState[i])) {
>> ((EscalationState)curState[i]).setModifiedTime(ts);
>> + modified = true;
>> }
>> }
>> }
>>
>

0 Kudos