java - Table missing error while maaping MySQL view to hibernate -


i trying map mysql view hibernate. when getting , table missing error while starting application.

view

create  algorithm = undefined  definer = `mydbadmin`@`%`  sql security definer view `reservation_transaction_view` select      convert( concat(`apst`.`tid`,             _utf8'-',             `apst`.`roomindex`,             _utf8'-',             `apst`.`rid`) using utf8) `id`,     `apst`.`tid` `transactionid`,     `apst`.`roomindex` `room no`,     `apst`.`pid` `paymentid`,     `apst`.`rid` `reservationid`     `agent_payment_sub_transaction` `apst`     (`apst`.`rid` <> 0) group `apst`.`tid` , `apst`.`roomindex` 

the mapping

<?xml version="1.0"?> <hibernate-mapping> <class name="com.abc.def.entity.reservationtransactionview"     table="reservation_transaction_view" catalog="abcd"> <id name="id" type="string" /> <property name="transactionid" type="java.lang.integer">     <column name="transactionid" /> </property> <property name="roomno" type="java.lang.integer">     <column name="`room no`" /> </property> <property name="paymentid" type="java.lang.integer">     <column name="paymentid" /> </property> <property name="reservationid" type="java.lang.integer">     <column name="reservationid" /> </property> 

the error followed.

org.hibernate.hibernateexception: missing table: reservation_transaction_view

i using mysql , hibernate3.0 please me query.

thanks in advance.

view stored select command in db. whenever try access view select command run.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -