sobota, 26 września 2020

[Java Example] How use ORM?

 Today I description simple project, which connection to database.

In java There is two most popular ORM ( Maybe three but it use in spring boot):

😀 Java Persistence Api

😁 Hibernate (most known)

In fact they are the same. They have some other method name, but work identicaly and use the same class.

Code show select and insert/update. Configuration allows conection to Postgres(my preference) and Mysql.

Of course You can simple add other database for example Oracle( add maven lib and configuration connection in xml)




😌The project was created especially for my colleague Marek.😏

Brak komentarzy:

Prześlij komentarz