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@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@it-motive.de

it-motive AG
Zum Walkmόller 10-12
47269 Duisburg
info@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users