The largest Interview Solution Library on the web


Interview Questions
« Previous | 0 | 1 | 2 | 3 | 4 | Next »

61.What is the purpose of @Key Annotation annotation?

This annotation sets the Key for type conversion. The Key annotation must be applied at field or method level.
@ Key( value = java.lang.Long.class )
private Map userMap;

62.What is the purpose of @KeyProperty Annotation annotation?

This annotation sets the KeyProperty for type conversion. The KeyProperty annotation must be applied at field or method level.
@ KeyProperty( value = "userNam e" )
protected List users = null;

63.What is the purpose of @TypeConversion Annotation annotation?

This annotation annotation is used for class and application wide conversion rules. The TypeConversion annotation can be applied at property and method level.
@ TypeConversion(rule = ConversionRule.COLLECTION,
converter = "java.util.String")
public void setUsers( List users ) {
this.users = users;
}

64.

65.?

66.?

67.?

68.?

69.?

80.?

« Previous | 0 | 1 | 2 | 3 | 4 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com