in isis.properties you'll find:

      isis.reflector.validator.allowDeprecated=false


change that to true.

Or, replace the deprecated @ObjectType annotation with
@DomainObject(objectType=...)

HTH
Dan



On 11 March 2016 at 17:22, Angel Manuel Barrera Lugo <
angel.barr...@sisorg.com.mx> wrote:

> Hello
>
> Again with some troubles with the Petclinic tutorial (simple)
> i have done everything in the tutorial and everything runs perfect but at
> the very end "2.14. Add pet’s Owner" after i made the changes and adds
> (owner) when running the app i got this message:
>
>
> The application failed to start due to a number of metamodel validation
> errors.
> dom.owners.Owner: annotation 'ObjectType' is deprecated
>
> first i try to include
> @SuppressWarnings("deprecation")
> in both: Owner.java and Pet.java (where i can see the use of ObjectType)
> but that makes no difference.
>
> After that i simply delete/comment those lines:
>
> @ObjectType("OWNER")
> And
> @ObjectType("PET")
>
> And then i get another message error:
>
> 11:15:49,957  [FixturesInstallerDelegate main       ERROR]  installing
> fixture fixture.pets.scenario.PetsFixture failed;
> aborting
> java.lang.NullPointerException
> at fixture.pets.objects.PetAbstract.findOwner(PetAbstract.java:45)
> at fixture.pets.objects.PetForSkye.execute(PetForSkye.java:32)
>

Reply via email to