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

Sandjaja, Dominik dominik.sandjaja at it-motive.de
Mon Jan 14 09:41:32 EST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130114/78781602/attachment-0001.html 


More information about the rules-users mailing list