Guide
  • Introduction
  • Intro
    • Introduction
  • Beginner
    • How to send a param to another page
    • How to fill a select/combobox, radiolist, checkboxlist
    • How to order a list by a columm (java)
    • How to change the first page(home) of an application
  • Intermediate
    • How to make a filter/search with QueryInterface
    • How to hide a table context button?
    • How to show a file in a table
    • How to consume a JSON... GET and POST
    • How to make a SoapRequest
    • How to fill SeparatorList or FormList
    • How to map an entity to table using hibernate??
  • Advanced
    • OUT OF SERVICE - How to use a switch in a table - UI designer
    • How to implement a process BPMN in IGRP Studio
Powered by GitBook
On this page
  1. Intermediate

How to map an entity to table using hibernate??

Here shows how to map an entity to table using hibernate

PreviousHow to fill SeparatorList or FormListNextOUT OF SERVICE - How to use a switch in a table - UI designer

Last updated 6 years ago

First of all, you have to create your application and connect to the database, for that you must click on "Application builder" and then click "configure database" [Fig. 1] and put information from your database [Fig. 2]

Open eclipse, it is automatic create the file with the the same name of your connection (hibernate_app_pg_1). Open the file and map yours classes [Fig. 3]

Now, just create your class Teste and Voilá [Fig. 4] And don't forget put your connection name on your classe [Fig. 5]

Then you can see your table created in your database [Fig. 6]

[Fig1] Application builder
[Fig.2] Configure database
[Fig. 3] Hibernate mapping
[Fig. 5] Connection name
[Fig. 6] table teste on database