Announcement

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

    Problem getting SmartGWT Pro work with Hibernate/MySQL

    Hello,

    i'm trying to reproduce the examples "SQL basic connector" and "Hibernate connector" from the PRO Showcase with my MySQL database.

    MySQL version: 5.1.52
    SmartGWT version: Pro 2.3
    Browser: Firefox, Chrome... doesn't matter

    I modified the files server.properties, worldHB.ds.xml, worldDS.ds.xml, BasicConnectorSample.java and BasicConnectorHibernateSample.java (see attached files) according to my configuration.

    The example "SQL basic connector" works fine, but "Hibernate connector" doesn't: it displays an empty grid with the message "No items to show". There is no error or anything notable in the log.

    As the two examples are almost identical, I really don't understand why it works with serverType="sql" and not with serverType="hibernate".

    Any idea ?

    Thanks a lot
    Attached Files

    #2
    Without having checked what you did wrong, first consider that you typically would only want to use one of these approaches, not both. Since you already have SQLDataSource working and that's the recommend approach, you should probably just continue with that.

    Comment


      #3
      Hi,

      thank you for your answer.

      The fact is that I am performing an evaluation of GUI frameworks, including SmartGwt, and I have to test every feature of it.

      Do you have any idea what could possibly be wrong that make it work with SQL, but not with Hibernate?

      Thanks a lot

      Nicolas

      Comment


        #4
        See the QuickStart Guide:

        Do not start by importing the Showcase project. The Showcase is designed to host several hundred short-lived mini-applications and to demonstrate a variety of data binding approaches. It is not structured like a normal application and does not represent best practices for normal applications.
        The place you're meant to start is the sample projects and there is one for Hibernate that you can simply import and run.

        Please read the QuickStart Guide in it's entirety before proceeding.

        Comment

        Working...
        X