[rules-users] Guvnor model with 'Comparable' not working

Michael Anstis michael.anstis at gmail.com
Thu Jan 17 09:18:02 EST 2013


Is it a known bug... it is now!

Could you please raise a JIRA at https://issues.jboss.org/browse/GUVNOR and
attach a repository export containing a rule and model illustrating the
problem.

Thanks,

Mike

On 14 January 2013 14:41, Sandjaja, Dominik
<dominik.sandjaja at it-motive.de>wrote:

>  Hi everybody,
>
> I use Guvnor 5.4 and have a model which consists of classes and subclasses.
>
> @Entity
> public class TestClass {
>     @Id
>     private long id;
>
>     @Embedded
>     private TestEmbeddable embedded;
> }
>
> @Embeddable
> public class TestEmbeddable implements Comparable<TestEmbeddable> {
>     @Column
>     private String testProperty;
>
>     @Override
>     public int compareTo(TestEmbeddable o) {…}
> }
>
> Now, in Guvnor I use the guided Editor and create a new WHEN condition:
>
> There is a TestClass with:
>     embedded …
>
> Usually, when I click on “embedded”, I can select
>   Apply a constraint to a sub-field of ‘embedded’: Show sub fields …
>
> This line does NOT show if that subclass (here: TestEmbeddable) implements
> Comparable. It does however work if I don’t use Comparable or if I select
> TestEmbeddable directly (which I can’t as I don’t inject those into my
> working environment).
>
> Is this a known bug? I couldn’t find anything about this.
>
> TIA
> Dominik
>
>
> …………………………………………………………………
> mit freundlichen Grüßen / kind regards
> Dominik Sandjaja
> Fon: +49 (0) 203 60878 183
> Fax: +49 (0) 203 60878 222
> e-mail: dominik.sandjaja at it-motive.de
>
> it-motive AG
> Zum Walkmüller 10-12
> 47269 Duisburg
> info at it-motive.de
> http://www.it-motive.de
> ……………………………………………………………………
> Vorsitzender des Aufsichtsrats: Dipl.-Ing. Klaus Straub
> Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim
> Klose
> HRB 9207, Amtsgericht Duisburg
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130117/6afb4963/attachment-0001.html 


More information about the rules-users mailing list