Hibernate: select register0_.FIRSTNAME as col_0_0_, register0_.LASTNAME as col_1_0_, register0_.EMAIL as col_2_0_ from CONTACT register0_
java.lang.String
shell has already closed
can any one tell me some rules of casting
Declare your objects as both being of the type of that interface, then there is no need for casting.
Pradeep, you will need to have a mapping from FtpFile to TableFileItem somehow.
To sort this problem i made a interface and implemented in both the classes, still i am not able to cast them. Can you tell another sort of problem.
.If they are unrelated, you can't cast them.