Question
What is the difference between these 2 annotations ?

@Entity

@Entity ( name="EMPLOYEES" )

Answers

The first annotation will try to map the Class with the Table as of same name as Class whereas the second annotation will specify the Entity name as "EMPLOYEES" and hence will try to map with Table Name "EMPLOYEES".   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Explain the significance of __DATE__ and __TIME__ preprocessor commands?
  • Q What is a quick fix?
  • Q Who succeeded Rana Udai Singh to the throne of Mewar?
  • Q What is Limerick?
  • Q What will your work strategy in handling the recent changes in the banking sector?
  • Q The main centre of architecture during the Pallava kings:
  • Q How Do You Test Classes That Must Be Run in a J2EE Container?
  • Q What is the SCIENTIFIC NAME for muskrat?
  • Q When was the first cricket world cup organized
  • Q public class MyClass1 { public static void main(String argv[]){ } /*Modifier at XX */ class MyInner {} } What modifiers would be legal at XX in the above code? 1) public 2) private 3) static 4) friend
  • Q Who was the first Home Minister of India?