Database > Entity Import (Create JPA Entities)

If you are building your application on top of an existing database, you can use RapidClipse’s import function to generate all required entities and their DAOs. Based on the imported database metadata, including tables, relations, and other constraints, the Java code for the corresponding entities is generated.

Hibernate data type mapping

The data types used by databases are often very different from corresponding data types in Java, among other things in the designation, structure and value range. During import, all database data types are automatically converted into suitable Java data types (data-type mapping). If certain relations were not or not correctly defined in the database, these must be completed or corrected during the import process.

  1. In Project Management > main-java click on. Image not found *Create JPA entities from tables.

  2. Click Tables to select all database tables and then click Next >.

    Image not found

  3. Check the imported constraints.+.
    Image not found

  4. Click on the relation you want to check more closely or change if necessary. In the lower detail area you can make any necessary changes.

    Image not found

  5. Click Next >.

  6. Specify the target folders or packages into which the code for your entities and their associated DAOs should be generated.

    Image not found

  7. Click Finish > to start the database metadata import and have the entity model generated.

    Image not found

  8. Select the project name of your project in Project Management, which will display the entities and their associated DAO.

    Image not found

  • Import complete database - It is recommended to always import the entire database for entity generation. If you generate entities only for parts of your database, it will not be possible to create relations to entities generated later.

  • Documentation on RapidClipse’s Hibernate Datatype Mapping - A detailed documentation of the datatype mapping strategy for the databases supported by RapidClipse can be found here: