+ 1
How can create a view just one time in java projects?
When we create persistence.xml file and when call EntityManagerFactory, the database create with all tables. But where and when we can create view in database? I need create just one time like tables.
2 ответов
0
You can create the database view and use JPA to map to that view with the @Table annotation just like you would do with an existing table.
0
but my view columns come from many tables.