Error opening database with ObjectDB Explorer when using composite key

#1

Hi,

When I use a composite key in an entity and fill this database with this entity, ObjectDB explorer throws me an error when opening this database saying something about an invalid ID class and not able to locate a field. I can however retrieve entries from my program. An example program has been attached to this ticket.

The code itself looks like this:

 

KEY:

public class PersonId implements Serializable
{
    private String id;
    private String channel;
    .....

 

ENTITY:

@Entity
@IdClass(PersonId.class)
public class Person {
    public enum Gender {FEMALE, MALE};
    @Id
    private String id;
    @Id
    private String channel;

    private String name;
    private Date birthDate;
    private Gender gender;

      .....

#2

Please attach the sample odb file with the issue.

ObjectDB Support
#3

Added a sample database 

#4

Thank you for this report.

Please check build 2.8.6, which should solve this issue.

ObjectDB Support
#5

Yes, thanks, that solves the problem.

Reply