Seems so: http://www.datanucleus.org/products/accessplatform_3_1/jdo/jdoql_interfaces.html
On Fri, Jan 19, 2018 at 10:57 PM, Dan Haywood <d...@haywood-associates.co.uk> wrote: > Hi Steve, > > Do we know that this is valid in DN, that @PersistenceCapable can be > applied to interfaces? > If so, then I guess we need to fix the metamodel validator to allow this > use-case. > > Thx > Dan > > > On Fri, 19 Jan 2018 at 11:27 Stephen Cameron <steve.cameron...@gmail.com> > wrote: > > > Hi, > > > > I'm trying to make use of Java interfaces, seems they are supported by > > DataNucleus, but may not by Apache Isis from the follow build error > > message? > > > > [ERROR] Failed to execute goal > > org.apache.isis.tool:isis-maven-plugin:1.16.0:validate (default) on > project > > event-schedule-module-base: Execution default of goal > > org.apache.isis.tool:isis-maven-plugin:1.16.0:validate failed: > Non-enhanced > > @PersistenceCapable classes found, will abort. The classes in error are: > > [ERROR] > > [ERROR] * au.com.scds.eventschedule.base.EventAttendance > > [ERROR] > > [ERROR] Did the DataNucleus enhancer run correctly? > > > > > > Where EventAttendance is an interface > > > > @PersistenceCapable(identityType=IdentityType.DATASTORE) > > public interface EventAttendance { > > > > @Persistent > > public Event getEvent(); > > @Persistent > > public Attendee getAttendee(); > > } > > > > Not a critical issue, I'm just experimenting. > > > > Steve > > >