MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
View previous topic Printable version Log in to check your private messages View next topic
Author Message
james_kohn
Post subject: Hibernate support  PostPosted: Nov 24, 2004 - 06:15 PM



Joined: Nov 24, 2004
Posts: 1

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-jeff
Post subject:   PostPosted: Nov 24, 2004 - 09:49 PM
Moderator
Moderator


Joined: Jul 18, 2004
Posts: 357

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).

_________________
jeff
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits