Note that there are some explanatory texts on larger screens.

plurals
  1. POModel is not managed by any plugin
    primarykey
    data
    text
    <p>I'm using Play!Framwork 1.2.5.</p> <p>I'm trying to implement the CRUD in my project for my casses in models. I followed the steps described <a href="http://www.playframework.com/documentation/1.2.5/guide7" rel="nofollow">here</a>, but I'm getting the following error: </p> <pre><code>Model models.Media is not managed by any plugin at play.db.Model$Manager.factoryFor(Model.java:57) at controllers.CRUD$ObjectType.&lt;init&gt;(CRUD.java:215) at controllers.CRUD$ObjectType.get(CRUD.java:238) at controllers.CRUD$ObjectType$get.call(Unknown Source) at {module:crud}/app/views/tags/crud/types.tag.(line:4) at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:247) at play.templates.GroovyTemplate$ExecutableTemplate.invokeTag(GroovyTemplate.java:401) at {module:crud}/conf/routes.(line:4) at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:247) at play.templates.Template.render(Template.java:26) at play.templates.GroovyTemplate.render(GroovyTemplate.java:202) at play.mvc.Router.parse(Router.java:162) at play.mvc.Router.parse(Router.java:190) at play.mvc.Router.parse(Router.java:164) at play.mvc.Router.load(Router.java:48) at play.mvc.Router.detectChanges(Router.java:219) at Invocation.HTTP Request(Play!) </code></pre> <p>here is the code of the class media: </p> <pre><code>import org.hibernate.annotations.Entity; import org.hibernate.annotations.GenericGenerator; import play.db.jpa.Model; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; @Entity public class Media extends Model{ @Id private String uuid; @OneToOne private Video video; @OneToOne private Picture picture; public String getUuid() { return uuid; } public void setUuid(String id) { this.uuid = id; } public Video getVideo() { return video; } public void setVideo(Video video) { this.video = video; } public Picture getPicture() { return picture; } public void setPicture(Picture picture) { this.picture = picture; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Media)) return false; Media media = (Media) obj; return media.getUuid().equals(this.uuid); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload