Hibernate DataSources and SessionFactories
All of my database values (schema, table, and column names) are marked as
errors in my HBM files. When I click on IDEA's suggestion to "Assign Persistence
Unit Datacource," it brings up a window with two columns, but nothing listed
in either. Using the Tools->Data Sources... menu item, I have already created
and cached the appropriate DataSource. Any hints?
--Mike
Please sign in to leave a comment.
Hello Kent,
This will be fixed by the next EAP.
As a workaround try adding "name" attribute to your session factory
and it should appear in that window after project reload.
Gregory Shrago
Michael Kent Werle wrote:
I use Spring to configure my session factory (currently, LocalSessionFactoryBean).
Is there any way to get IDEA to recognize it in that case? My project is
a medium-large J2EE project. For testing purposes, there are a few different
session factory configurations, and they're not all in the module with the
Hibernate code; in particular the session factory used in the J2EE container
is not. Is there any way to tell IDEA the configuration manually?
--Mike
Hello Michael,
Please comment on IDEADEV-14585:
http://www.jetbrains.net/jira/browse/IDEADEV-14585
In particular, a comment in JIRA or your specific setup details would be
valuable. You might also want to add yourself as a watcher on that issue.
-tt