Having trouble configuring Data Source/Hibernate

I am experiencing a weird behavior with Selena when trying to configure a data source and Hibernate for a Java module (non-J2EE or Web module.)

I have successfully set up the data source, tested the connection and loaded the tables. Then went on to add the Hibernate facet to my module. However, the Hibernate General Settings pane on the right side of the Settings window shows nothing under "DataSources Mapping", and I can't add anything to it.

When I create a Hibernate mapping file, the table names are not recognized, naturally, and I get a light bulb interntion shortcut to assign a data source. When I click on the icon, the Data Sources window opens with an empty table. I can click the icon at the top left and open the Data Sources window. I select the data source I have previousdly created, click OK, the window closes, but nothing gets added to the SessionFactory/DataSource table in the Assign Persistence Unit Datasource window.

Am I missing something? Can anyone help out?
Thanks!

Message was edited by:
constv

1 comment

Hello constv,

The problem is that you have no session factories to map datasource to.
Hibernate facet configuration is a work in progress.
The table and intention should not and will not be available in your case.


Regards,
Gregory Shrago

constv wrote:

I am experiencing a weird behavior with Selena when trying to configure a data source and Hibernate for a Java module (non-J2RR or Web module.)

I have successfully set up the data source, tested the connection and loaded the tables. Then went on to add the Hibernate facet to my module. However, the Hibernate General Settings pane on the right side of the Settings window shows nothing under "DataSources Mapping", and I can't add anything to it.

When I create a Hibernate mapping file, the table names are not recognized, naturally, and I get a light bulb interntion shortcut to assign a data source. When I click on the icon, the Data Sources windo opens with an empty table. I can click an icon at the top left and open the Data Sources window. I select the data source I have previousdly create, click kOK, the window closes, but nothing gets added to the SessionFactory/DataSource table in the Assign Persistence Unit Datasource window.

Am I missing something? Can anyone help out?
Thanks!

0

Please sign in to leave a comment.