Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    I was able to make configBean way work by putting a separate hibernate.cfg.xml file. But, it is not accepting the annotation based entity and expected .hbm.xml file for defined Entity bean.

    Is there a way to force it to use Annotation based session factory??

    Any idea on why I could not spin using server.properties file??

    Comment


      #17
      So again, based on the logs we can see, getObject() on the Configuration is returning null. In post 14 you almost, but did not quite, actually test for this. This is what you need to check for null:

      Code:
      sessionFactory.getConfiguration().getObject()

      Comment


        #18
        There is no getObject() method in Configuration class.

        When I call sessionFactory.getConfiguration() I get back org.hibernate.cfg.Configuration instance, which does not have any getObject() method.

        Comment


          #19
          Hi Isomorphic,

          we are completely stuck and would greatly appreciate your help. I am not able get around this issue.

          Comment


            #20
            Hi,

            Thanks for pointing out a problem.

            I was able to reproduce your case.
            I've just committed changes with correct hibernate configuration acquisition (from spring) and usage.
            You will be able to pick up these changes with next nightly build.

            Could you please notify me if it works or not?

            Regards,
            Alius

            Comment


              #21
              Thank you for your prompt response. Appreciate it. Will check if this solves the issue.

              Comment

              Working...
              X