I am trying to use Hibernate to connect to Oracle.  I was using MySQL -
where everything worked.  All I've changed (so far) was the tablename from
"user" to "cct_user".  Now I'm getting the following error:

   [junit] Testcase:
testGetUser(com.cable.comcast.dmc.itd.cct.persistence.ApplicationDAOHibernat
eTest):     Caused an ERROR
    [junit] java.sql.SQLException: ORA-00923: FROM keyword not found where
expected

    [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected


I'm guessing there's something wrong with this code:

List users = (List) ses.find("from user in class
com.cable.comcast.dmc.itd.cct.persistence.User where username=?",
name, Hibernate.STRING);

Thanks,

Matt



-------------------------------------------------------
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M        http://www.thinkgeek.com/sf/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to