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
>

Reply via email to