30 Aralık 2020 Çarşamba

IntelliJ Idea ve Veri tabanı

1. Ultimate Edition Kullanıyorsak
Export to Database
Bir veri tabanındaki tabloyu kolayca başka veri tabanına kopyalamak için kullanılır. 
1. Kaynak tablo açılır
2. Export to Database tıklanır
3. Kopyalanacak hedef veri tabanı seçilir ve işlem yapılır

2. Community Edition Kullanıyorsak
Database Navigator eklentisi kurulur. Bu eklentiyle çalışmak ta güzel

3. JPA Buddy
Bu eklenti (plugin) JPA ile çalışmayı kolaylaştırıyor. Şeklen şöyle

3.1 Reverse Engineering
JPA Buddy veri tabanından tersine mühendislik ile kod üretebilir. Yani Entity kodunu üretiyor. Açıklaması şöyle
If you connected your database to Intellij IDEA, and installed JPA buddy plugin then you can easily create an entity class with the help of plugin without writing a single line of code.

3.2. JPA Buddy DTO Generation
Açıklaması şöyle
If you use JPA Hibernate in your application, this will come in very handy. It is very common to use the entity class to create the object directly at the place of generation of data, but sometimes that is not suitable. In such cases we need a DTO to transform the data into persistable form. Here, JPA Buddy comes in clutch where you can create a DTO directly from the entity and edit it the way you want. This is especially useful when you need DTOs for multiple entities. Within a couple of clicks you’ll have all the DTOs ready.

Hiç yorum yok:

Yorum Gönder