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

    camel-hibernate insert's the data rather then fetch


      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"/>




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

      public class ReferenceTable {


      for more

      Camel - Users - Camel hibernate issue with Select