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 an entity bean be mapped to an existing database table?

0
Posted

Can an entity bean be mapped to an existing database table?

0

Yes. The entity bean can be mapped to an existing relational database table. To achieve this, you must indicate to the EJB container what table to use for the entity bean. This is done in the deployment specific orion-ejb-jar.xml file. Additionally, you can also map the fields of the entity bean to columns with different names in the table. This deployment information is also provided in the orion-ejb-jar.xml file. For example, to map the Employee entity bean to an existing employee relational database table, the following information is supplied in the orion-ejb-jar.xml file.

Related Questions

What is your question?

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