https://issues.apache.org/jira/browse/ISIS-1834
On Fri, 19 Jan 2018 at 12:17 Dan Haywood <[email protected]> wrote: > OK, I'll raise a ticket to relax this validation. > > ta > > > On Fri, 19 Jan 2018 at 12:15 Stephen Cameron <[email protected]> > wrote: > >> 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 < >> [email protected]> >> 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 < >> [email protected]> >> > 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 >> > > >> > >> >
