facebook

Scaffold to use JNDI datasource / no atomikos / openjpa?

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #311680 Reply

    Guills
    Member

    Hi,

    I’m scaffolding to Spring DSL from a DB schema and the generated code uses hibernate+atomikos using a direct database connection (server, username, password).

    How do I change the DSL part to stop generating a hibernate.properties file, a jta.properties file, references to atomikos and all… I just want to configure my own datasource and container managed transactions and be done with it.

    Thanks.

    #311681 Reply

    Guills
    Member

    Oh.. and if there’s no way in the IDE but there is a solution by manually changing some of the DSL config files, that is all good also.

    #311727 Reply

    davemeurer
    Member

    Hello,

    While you can always manually change any generated files that you like, there are a couple ways to control the behavior before scaffolding:

    The first is via the Code Generation section of the Code Generation tab that is shown when the Spring DSL node is double-clicked. Once on the Code Generation tab, you will be able to turn off generation for any artifacts you like.

    The second approach is coming very soon in our 8.6.1 release with Customization Projects. This new capability will allow you to customize the templates used in Scaffolding generation. So, for example, you can find all the references to atomikos in the templates and remove/update them with something else. Stayed tuned for this new release coming out very soon.

    Kind regards,
    Dave

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Scaffold to use JNDI datasource / no atomikos / openjpa?

You must be logged in to post in the forum log in