Hibernate: select this_.oid as oid11_0_, this_.create_date as create2_11_0_, this_.delflag as delflag11_0_, this_.address as address11_0_, this_.age_range as age5_11_0_, this_.oforg as oforg11_0_, this_.country as country11_0_, this_.education_level as education7_11_0_, this_.email as email11_0_, this_.enabled as enabled11_0_, this_.fax_number as fax10_11_0_, this_.gender as gender11_0_, this_.gtalk as gtalk11_0_, this_.home_phone as home13_11_0_, this_.income_range as income14_11_0_, this_.last_login_date as last15_11_0_, this_.user_id as user16_11_0_, this_.marital_status as marital17_11_0_, this_.mobile_phone as mobile18_11_0_, this_.msn_account as msn19_11_0_, this_.user_name as user20_11_0_, this_.occupation as occupation11_0_, this_.ofcity as ofcity11_0_, this_.ofdep as ofdep11_0_, this_.office_phone as office25_11_0_, this_.password as password11_0_, this_.position as position11_0_, this_.postal_code as postal28_11_0_, this_.qq_number as qq29_11_0_, this_.recflag as recflag11_0_, this_.re as re11_0_, this_.state as state11_0_, this_.user_type as user33_11_0_ from app_user this_ where this_.user_id=?
2011-12-06 15:12:04,843 [http-8080-2] WARN  [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 942, SQLState: 42000
2011-12-06 15:12:04,859 [http-8080-2] ERROR [org.hibernate.util.JDBCExceptionReporter] - ORA-00942: 表或视图不存在
请问这是什么问题啊?是数据库表里面还没有表还是什么呢?

解决方案 »

  1.   

    很明确的说明啊 你要查询的那个 app_user 不存在啊
      

  2.   

    select this_.oid as oid11_0_, this_.create_date as create2_11_0_, 
           this_.delflag as delflag11_0_, this_.address as address11_0_, 
           this_.age_range as age5_11_0_, this_.oforg as oforg11_0_, 
           this_.country as country11_0_, this_.education_level as education7_11_0_, 
           this_.email as email11_0_, this_.enabled as enabled11_0_, 
           this_.fax_number as fax10_11_0_, this_.gender as gender11_0_, 
           this_.gtalk as gtalk11_0_, this_.home_phone as home13_11_0_, 
           this_.income_range as income14_11_0_, this_.last_login_date as last15_11_0_, 
           this_.user_id as user16_11_0_, this_.marital_status as marital17_11_0_, 
           this_.mobile_phone as mobile18_11_0_, this_.msn_account as msn19_11_0_, 
           this_.user_name as user20_11_0_, this_.occupation as occupation11_0_, 
           this_.ofcity as ofcity11_0_, this_.ofdep as ofdep11_0_, 
           this_.office_phone as office25_11_0_, this_.password as password11_0_, 
           this_.position as position11_0_, this_.postal_code as postal28_11_0_, 
           this_.qq_number as qq29_11_0_, this_.recflag as recflag11_0_, 
           this_.re as re11_0_, this_.state as state11_0_, 
           this_.user_type as user33_11_0_ 
           
           from app_user this_ where this_.user_id=?
      看这表是否存在?