Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Generate POJO's from Database types

$
0
0

Hello!

 

I am using PostgreSQL with stored procedures a lot.

Each procedure returns me a specific type so I can do something like this:

 

            Query q = em.createNativeQuery("SELECT filename, image_id FROM mySchema.userImages(?,?,?);", Image.class);

Now I am seeking a way to let Idea generate POJO's for me based on database types within a schema. I know that
the ORM frameworks allow me to generate POJO's based on tables, but I cannot use the tables, just the types
Is something like this possible with Idea?
Cheers,
Ries

Viewing all articles
Browse latest Browse all 5661

Trending Articles