Announcement

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

    Visual Builder - new Datasource

    i created a new database configuration in the AdminConsole Application !
    (i also set it to default)

    When i now try to make a new Datasource within the VisualBuilder (Existing SQL Table (via Hibernate)) then i always get displayed the example database !

    Why cant i choose which database to use - or where can i set that property ?

    #2
    For the Hibernate wizard you would have to configure SQL via Hibernate.

    Try the non-Hibernate SQL wizard. It's a more capable connector with less overhead, which is why the docs steer you to it as a first choice.

    Comment


      #3
      as i have my data model defined in entity beans - how can i tell the Visual Builder to take those - as again if i click "Hibernate Bean" it only shows the samples ??

      Comment


        #4
        The hibernate wizard currently looks for hibernate.cfg.xml in the classpath. If this isn't how you're configuring your beans, telling us about how your Hibernate configuration works might allow us to add support for it in the future.

        For now, use the Java Bean wizard and add Hibernate code yourself, possibly based on the Custom DataSource sample in the EE showcase.

        Comment


          #5
          I am using annotations ! So that will not work at all - or is there any other possibility ?

          Comment


            #6
            The Java Bean wizard is going to give you a good starter .ds.xml file, and if you plan a custom DataSource implementation, using the Hibernate wizard would not put you further along.

            However, you should also take a look at the Batch DataSource Generator. It's designed for you to augment/modify the process by which DataSources are derived from Java classes, so you could add support for Hibernate annotations, adding additional properties to the .ds.xml file that your custom DataSource could then use to modify behavior.

            Comment


              #7
              Thanks that cleared some parts form me (still there are some open - but they are in another thread) !!

              Thanks

              Comment

              Working...
              X