Hi Petar Tahchiev, Per spec, @AttributeOverride is supposed to work only with entities inheriting from a @MappedSuperClass (and on embedded). So unfortunately, it won't work in your case. See https://static.javadoc.io/org.eclipse.persistence/javax.persistence/2.2.0/javax/persistence/AttributeOverride.html . What you could do is put the common stuff into a @MappedSuperclass and inherit both Category and Taxon from there. That should solve your issue. |