IntelliJ IDEA 12.1.0 Web Help

Some features described here are available in Ultimate edition only.

To access this dialog from the Database tool window (when creating a new data source):
Alt+InsertCommand N; Command Enter or New in the context menu, then select Import from sources.
If there are data sources already defined, select any of the data sources first.


Use this dialog to select the configuration files for which you want to create DB data sources.

In the upper part of the dialog, underneath the toolbar, the appropriate configuration files found in your project are displayed. These may be Hibernate, JPA, Spring and Tomcat (context.xml) configuration files.

For each of the files, the main settings for a data source that can be created are shown. The most important of these settings are the database connection parameters (the database URL, driver class, user name and password) and the corresponding JDBC driver file.

When you select a configuration file, its contents are shown in the lower part of the dialog.

Use the check boxes to select the files for which you want to create data sources.

ItemTooltipShortcutDescription
properties Properties Click this button to open the Data Source Properties dialog for the selected item to view or edit the properties of the data source that can be created.
iconSelectAllRemoteRunDialog Select All Click this button to select all the items ( config files/candidate data sources).
iconUnSelectAllRemoteRunDialog Unselect All Click this button to deselect all the items ( config files/candidate data sources).
expandAll.png Expand AllCtrl+Add; Ctrl+EqualsCtrl+Add; Ctrl+EqualsClick this button to expand all nodes.
collapseAll Collapse AllCtrl+Subtract; Ctrl+MinusCtrl+Subtract; Ctrl+MinusClick this button to collapse all nodes.
Test ConnectionClick this button to make sure that the database connection settings for the selected item are correct, and IntelliJ IDEA can communicate with the target database.

See Also

Language and Framework-Specific Guidelines:

Web Resources: