Announcement

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

    SmartGWT with Existing Hibernate 5 Application

    I'm working on integrating SmartGWT into an existing application where Hibernate 5 is already used. The existing application already creates the SessionFactory. Is there a way to use the already configured SessionFactory object with SmartGWT? And will Hibernate 5 even work with SmartGWT?

    #2
    Sorry for the delayed response. It seems that you've got things working already, but we'll answer this for other users that might hit same problem.

    There are two options how to use Hibernate 5 with SmartGWT:
    1. use JPADataSource and just replace Hibernate required dependencies in classpath (recommended)
    2. manually integrate with existing data model using custom DataSource approach as described here

    Comment


      #3
      Thanks for the reply.

      One more question, is there any difference feature wise between using a JPADataSource and HibernateDataSource?

      Comment


        #4
        Yes - see the docs for JPA Integration and Hibernate Integration.

        Comment

        Working...
        X