Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I define Java classes based on a relational view ?

0
Posted

Can I define Java classes based on a relational view ?

0

Yes. You may want to do so if, for example, a complicated join statement or a select statement with aggregations gives exactly what you want. Just use the name of the view in place of the table name in object-relational mapping specification for that class. Of course, you may not be able to update (in the database) the objects of those classes if the underlying view is not updateable.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123