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

Type: BugVersion: 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;

      .....

#2

Please attach the sample odb file with the issue.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Added a sample database 

#4

Thank you for this report.

Please check build 2.8.6, which should solve this issue.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#5

Yes, thanks, that solves the problem.


Post Reply

To post a reply and/or subscribe to update notifications - please login