Comparing the bytes of the serialized byte stream should be better than
an identity compare, although it isn't a true equals.
-W
On 20/03/2013, gqmulligan <gqmulligan(a)gmail.com> wrote:
If I wanted to compare two knowledge packages to find out if they are
the
"same" how would I do so?
More specifically if I deserialize the same knowledge package twice how can
I compare the two in a way that will return true signifying they are the
same?
Using the equals method will not work since that simply does identity
comparisons. This is causing big problems for me right now because
hibernate always thinks packages are dirty and is constantly updating them
to the database when they do not need to be.
Any suggestions are much appreciated as this has become an urgent issue.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Comparing-KnowledgePackages-for-Equalit...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users