![]() ![]() Specify one or more characters as a suffix for your entity class names. Specify one or more characters as a prefix for your entity class names. Specify the destination package for your entity classes. You can generate managed entity classes and object-relational mappings from a database schema represented by a data source, from entity beans in an EJB facet with an associated deployment descriptor file ejb-jar.xml, or from a Hibernate object-relational mapping file. This will open the JPA console where you can write and execute JPQL queries. Right-click a persistence unit or entity and select Console or click in the toolbar Control+Shift+F10. Select necessary naming strategies for relevant persistence units and click OK. Right-click a module, persistence unit, or entity, and select Assign Naming Strategies. ![]() Associate persistence units with naming strategies Also, the JPA console will use proper database connection settings, and you won't need to specify them manually. With this association, IntelliJ IDEA will validate the source code that references database tables against the corresponding data sources. Select necessary data sources for relevant persistence units and click OK. Right-click a module, persistence unit, or entity, and select Assign Data Sources. ![]() Right-click a managed entity and select Entity Relationship Diagram.Īssociate persistence units with data sources ![]() Use the New action in the Persistence tool window to create XML configuration files, persistence units, entity classes and fields with their getters and setters, embeddable objects, mapped superclasses, entity listeners, object-relational mappings, and so on. Right-click a field or class and select Jump to Source. To navigate from an entity in the Persistence tool window to the corresponding source code definition in the editor, do one of the following: If you have at least one module with the JPA facet in your project, you can use the Persistence tool window to view and manage various JPA items: configuration files, persistence units, and managed entities (persistent classes and fields). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |