What are simple rules that a Primary key class has to follow

Showing Answers 1 - 4 of 4 Answers

Ashok

  • Jun 27th, 2005
 

Implement the equals and hashcode methods.

  Was this answer useful?  Yes

Prashanth

  • Jul 15th, 2005
 

The One Rule is that your primary key class must be serializable and follow the rules for Java Object serialization.

  Was this answer useful?  Yes

Sailaja

  • Sep 20th, 2005
 

Primary key class has to meet the following requirements

?         The access control modifier of the class is public.

?         All fields are declared as public.

?         The class has a public default constructor.

?         The class implements the hashCode() and equals(Object other) methods.

 

 The class is serializable

  Was this answer useful?  Yes

EDESIA

  • May 9th, 2006
 

what is a primary key in tables used in data entry?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions