Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-421

Jboss CMR extra column name problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Minor Minor
    • No Release
    • JBossAS-3.2.6 Final
    • CMP service
    • None

      SourceForge Submitter: dheeraj_s .
      Hi :

      I have a very simple relationship.
      UserBean <---- Login
      This is 1:1 relationship.
      I am trying to load UserBean from LoginBean.
      At the database level
      It is
      Login.UserId [FK] = User.Id
      In LoginBean I have
      setUserBean and getUserBean methods.
      I have written a EJB-QL, Where I fecth the Object of
      LoginBean.

      It compiles and installs very decently.
      However, when I try to invoke the EJB-QL. I get the
      following error in the log file.

      select id,username.....,userBean from
      Login where username = ? and password = ?

      This is a wrong SQL as there is no userBean in the
      Login Table.

      I tried to use this in Jboss3.0.x plus on jboss3.2.0 with
      Tomcat.

      Can someone please explain, why Jboss is creating a
      worng SQL.

      Cheers

      Dheeraj

              olubyans@redhat.com Alexey Loubyansky
              sourceforge-user SourceForge legacy user (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: