That is the class. And it already carries @PersistenceCapable:

"
package org.isisaddons.module.wizard.fixture.dom;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.VersionStrategy;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.annotation.BookmarkPolicy;
import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation.DomainObjectLayout;
import org.apache.isis.applib.annotation.MemberOrder;
import org.apache.isis.applib.annotation.Title;
import org.apache.isis.applib.util.ObjectContracts;

@javax.jdo.annotations.PersistenceCapable(
        identityType=IdentityType.DATASTORE,
        schema="wizard")
@javax.jdo.annotations.DatastoreIdentity(
        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
         column="id")
@javax.jdo.annotations.Version(
        strategy=VersionStrategy.VERSION_NUMBER,
        column="version")
@DomainObject(
        objectType = "WIZARD_DEMO_OBJECT"
)
@DomainObjectLayout(
        bookmarking = BookmarkPolicy.AS_ROOT
)
public class WizardDemoObject implements Comparable<WizardDemoObject> {

    //region > name (property)

    private String name;

    @javax.jdo.annotations.Column(allowsNull="false")
    @Title(sequence="1")
    @MemberOrder(sequence="1")
    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    //endregion


    //region > compareTo

    @Override
    public int compareTo(WizardDemoObject other) {
        return ObjectContracts.compare(this, other, "name");
    }

    //endregion

    //region > injected services

    @javax.inject.Inject
    @SuppressWarnings("unused")
    private DomainObjectContainer container;

    //endregion

}
"


2017-02-22 9:23 GMT-04:00, Johan Doornenbal <[email protected]>:
> Hi Eder,
> This is a datanucleus issue. Make sure the classes are enhanced …
> Best regards,
> Johan Doornenbal+31 6 227 666 28
>
>
>
>
>
> On Wed, Feb 22, 2017 2:01 PM, L Eder [email protected]  wrote:
> I got this same error when running the own Addon Template.
>
>
>
>
> 2017-02-22 8:12 GMT-04:00, L Eder <[email protected]>:
>
>> I tried the IDEA import as well, but i am fighting errors there, after
>
>> i run the created configuration. Any help is thankful.
>
>>
>
>>
>
>> “
>
>> [IsisWicketApplication main ERROR] Failed to initialize
>
>> com.google.inject.ProvisionException: Unable to provision, see the
>
>> following errors:
>
>> 1) Error in custom provider, java.lang.IllegalStateException:
>
>> Non-enhanced @PersistenceCapable classes found, will abort. The
>
>> classes in error are:
>
>> * org.isisaddons.module.wizard.fixture.dom.WizardDemoObject
>
>> Did the DataNucleus enhancer run correctly?
>
>> “
>
>>
>
>>
>
>> 2017-02-22 4:52 GMT-04:00, Erik de Hair <[email protected]>:
>
>>>
>
>>> On 02/22/2017 09:43 AM, Erik de Hair wrote:
>
>>>> Hi Eder,
>
>>>>
>
>>>> I've only run the application from IntelliJ using the settings as per
>
>>>> [1], never really built it as a war. But now it seems I've got the
>
>>>> same problem when running with antrun:run.
>
>>>>
>
>>>> I used the Apache Isis add on template from [2] but didn't add any
>
>>>> dependencies. Just renamed the xxx-strings to wizard and added a few
>
>>>> classes. I did change the compileSource and compileTarget properties
>
>>>> to 1.8 though, because I was using Java 8 streams.
>
>>> Changing back to Java 7 didn't help...
>
>>>
>
>>>
>
>>

Reply via email to