ObjectDB ObjectDB

Issue #2677: Error opening database with ObjectDB Explorer when using composite key

Type: Bug ReoprtVersion: 2.8.5_07Priority: NormalStatus: FixedReplies: 4
#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;

      .....

edit
delete
#2

Please attach the sample odb file with the issue.

ObjectDB Support
edit
delete
#3

Added a sample database 

edit
delete
#4

Thank you for this report.

Please check build 2.8.6, which should solve this issue.

ObjectDB Support
edit
delete
#5

Yes, thanks, that solves the problem.

edit
delete

Reply

To post on this website please sign in.