1 Reply Latest reply on Oct 11, 2007 4:54 AM by Robert Deverill

    Generating EJB3 entities using seam-gen tables/views

    Chris Petty Newbie

      I am using seam 2.0 and Jboss 4.2 and used seam-gen to generate EJB3 entities for oracale tables and views. During deployment I get errors directly related to the entites that were created off the views. I know in the past with straight hibernate views and tables were treated the same. Has this changed when using EJB3. Any help will be much appreciated. I have included the exception below. Thanks


      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=EverStageMeta.ear,unitName=EverStageMeta
      State: FAILED
      Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing table: SECURITY_MASTER_SOURCE_VW
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=EverStageMetaDatasource

        • 1. Re: Generating EJB3 entities using seam-gen tables/views
          Robert Deverill Newbie

          I am also getting this issue on jboss 4.0.5

          This is my enitiy bean

          
          import java.io.Serializable;
          
          import javax.persistence.Column;
          import javax.persistence.Entity;
          import javax.persistence.Id;
          import javax.persistence.NamedQuery;
          import javax.persistence.Table;
          
          @Entity
          @NamedQuery(name = "SelectNodeView.findAll",
           query = "select o from SelectNodeView o")
          
          @Table(name = "SELECT_NODE_VIEW")
          public class SelectNodeView implements Serializable {
          
           @Id
           @Column(nullable = false)
           private Long id;
          
           @Column(name="URL_PATTERN", nullable = false)
           private String urlPattern;
          
           public SelectNodeView() {
           }
          
           public Long getId() {
           return id;
           }
          
           public void setId(Long id) {
           this.id = id;
           }
          
           public String getUrlPattern() {
           return urlPattern;
           }
          
           public void setUrlPattern(String urlPattern) {
           this.urlPattern = urlPattern;
           }
          }