Solved

EJB Entity Bean  instance field mapping

Posted on 2010-08-22
2
447 Views
Last Modified: 2013-12-29
Is it necessary that Entity Bean's  all  instance fields have to be  mapped to the database table columns ?  If I keep an instance field unmapped , what will happen ?
0
Comment
Question by:cofactor
2 Comments
 
LVL 20

Accepted Solution

by:
a_b earned 100 total points
ID: 33498015
Nothing will happen. You  can keep unmapped fields in your entity beans.
0
 
LVL 5

Expert Comment

by:afibarra
ID: 33498166
Nothing happens. Just be sure to annotate them with @Transient, otherwise they will be treated as a column fields.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now