QnaList > Groups > Play-Framework > Mar 2016
faq

[play-framework] How To Solve : Could Not Find BeanDescriptor For Class????

I got this error when I change one of my ebean model classes!! how can I 
solve it??
1) Error injecting constructor, javax.persistence.PersistenceException: 
Could not find BeanDescriptor for class models.ProductOrder. Perhaps the 
EmbeddedId class is not registered? 
this is my class:
package models;
import com.avaje.ebean.Model;
import com.avaje.ebean.annotation.CreatedTimestamp;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
@Entity
public class ProductOrder extends Model {
    @Id
    String uuid;
    @Column(columnDefinition = "datetime")
    @CreatedTimestamp
    public Timestamp createdAt;
    @ManyToOne
    Customer customer;
    @ManyToOne
    Payment payment;
    @ManyToOne
    Store store;
    @OneToMany(cascade = CascadeType.ALL)
    List orderDetailsList;
    public static Finder find = new Finder(ProductOrder.class);
    public String getUuid() {
        return uuid;
    }
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public Customer getCustomer() {
        return customer;
    }
    public void setCustomer(Customer customer) {
        this.customer = customer;
    }
    public Payment getPayment() {
        return payment;
    }
    public void setPayment(Payment payment) {
        this.payment = payment;
    }
    public Timestamp getCreatedAt() {
        return createdAt;
    }
    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }
    public Store getStore() {
        return store;
    }
    public void setStore(Store store) {
        this.store = store;
    }
    public List getOrderDetailsList() {
        return orderDetailsList;
    }
    public void setOrderDetailsList(List orderDetailsList) {
        this.orderDetailsList = orderDetailsList;
    }
}
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/af8daf3b-cdf7-40c7-9f67-1dccb9226733%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

asked Mar 26 2016 at 07:52

Yasaman S 's gravatar image



Related discussions

Tagged

Group Play-framework

asked Mar 26 2016 at 07:52

active Mar 26 2016 at 07:52

posts:1

users:1

Play-framework

©2013 QnaList.com . QnaList is part of ZisaTechnologies LLC.