facebook

Hibernate support

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #219991 Reply

    james_kohn
    Member

    I used the db explorer to view and then generate the Hibernate mappings to some database tables. When reviewing the generated configuration xml, it appears that the builtin (and not recommeded for production use) connection pool is used.

    It also appears that only simple mappings are supported.

    so:

    1) Is it possible to specify the connection pool to be generated?
    2) When will more complex mappings be supported (i.e collection mapppings etc.)?

    Thanks

    #219998 Reply

    support-jeff
    Member

    By “built-in connection pool” I take you to mean that using a plain old DriverManager style connection is configured. That is correct, but you can change that to use a DataSource to lookup thru JNDI and thereby get a pooled connection. You do this when you add Hibernate capabilities to your project, or when you create a new config file – the first wizard page of the config file wizard lets you select the method to use.

    Configuring the connection pool itself is your job – if you want to use Hibernate to do it, you have to add it to the config file. Generally, under most app servers, you configure the connection pool in the app server configs and just lookup the DataSource via JNDI.

    More sophisticated mapping will be coming in a future release (no dates yet).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate support

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