kbss-cvut / jb4jsonld

JSON-LD serialization and deserialization for Java REST services.
GNU Lesser General Public License v3.0
10 stars 3 forks source link

issues when deserializing subclasses #34

Closed cristianolongoodhl closed 3 years ago

cristianolongoodhl commented 3 years ago

I defined a ParentClass and two subclasses ChildClassA and ChildClassB. ParentClass has a single field, annotated with @id, whereas the child classes has no additional fields.


    @OWLClass(iri = "http://www.example.org/parent")
    public static class ParentClass {
        @Id
        private String id;

        public ParentClass() {
            this.id = "http://noid.org";
        }

        public String getId() {
            return id;
        }

        public void setId(final String id) {
            this.id = id;
        }

    }

    @OWLClass(iri = "http://www.example.org/childa")
    public static class ChildClassA extends ParentClass {
    }

    @OWLClass(iri = "http://www.example.org/childb")
    public static class ChildClassB extends ParentClass {
    }
cristianolongoodhl commented 3 years ago

wrong tiket sorry