[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-416?page=co...
]
Jaka Jancar commented on EJB-416:
---------------------------------
Then don't implement it via openSession(connection), which is hackish, I agree.
What about adding support for passing Session-local configuration to openSession(), e.g.
openSession(SessionSettings)
This new openSession(SessionSettings) would map 1:1 to
EntityManagerFactory.createEntityManager(Map).
If openSession(connection) is deprecated, is there _ANY_ way of connecting to multiple
databases without rebuilding SessionFactory for each one (which is very slow)?
Allow url overriding through createEntityManager(String, Map
override)
----------------------------------------------------------------------
Key: EJB-416
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-416
Project: Hibernate Entity Manager
Issue Type: Improvement
Components: EntityManager
Affects Versions: 3.4.0.GA
Environment: Hibernate Core 3.3.1.GA, Hibernate EntityManager 3.4.0.GA
Reporter: Jaka Jancar
Hibernate EntityManager does not allow overriding of
hibernate.connection.(url|username|password) using
EntityManagerFactory.createEntityManager()'s Map parameter.
EJB-254 reports the same issue, but for hibernate.datasource connections, and it seems to
be resolved.
I looks to me like similar functionality is supported by Session's
openSession(Connection connection), but switching to Hibernate's API because of this
would be very unfortunate.
I have described a use-case for this here:
http://forum.hibernate.org/viewtopic.php?t=995507
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira