package de.thm.sagprojekt.Persistence.Aspect.Mixins;
public interface EntityInterface {
public Boolean isPersistent();
public void setPersistent(Boolean persistent);
}
but it seems to be wrong. If i use following code my app crashes with
XYZ cannot be cast to de.thm.sagprojekt.Persistence.Aspect.Mixins.EntityImplementation
PersistenceManager.java
package de.thm.sagprojekt.Persistence;
import de.thm.sagprojekt.Persistence.Aspect.Mixins.EntityImplementation;
import de.thm.sagprojekt.Persistence.Aspect.Mixins.EntityInterface;
public class PersistenceManager {
public static boolean isEntityPersistent(Object entity) {
return ((EntityImplementation)entity).isPersistent();
}
}
Hello,
i tried to introduce Mixins in my models,
PersistenceMagicAspect.java:
AggregateRoot.java (Annotation)
EntityInterface.java
EntityImplementation.java
but it seems to be wrong. If i use following code my app crashes with
XYZ cannot be cast to de.thm.sagprojekt.Persistence.Aspect.Mixins.EntityImplementation
PersistenceManager.java
has somebody working example?
PS: i used Api19