4 Replies Latest reply on May 30, 2017 1:04 AM by sarada ch

    camel-hibernate insert's the data rather then fetch

    sarada ch Newbie

      Hi All,

      I am trying to select data from DB using camel-hibernate but the behaviour is weird. It try's to insert instead of select

       

       

      <to id="_to1" uri="hibernate:com.x.dto.ReferenceTable?consumer.namedQuery=selectQuery"/>

       

      @Entity

      @Table(name="REFFERENCE_TABLE")

      @NamedQuery(name = "selectQuery", query = "select m from ReferenceTable m ")

      public class ReferenceTable {

       

      for more

      Camel - Users - Camel hibernate issue with Select