com.envers.DuaVO@5d8a2977
Exception in thread "main" java.lang.ClassCastException: com.envers.DuaVO cannot be cast to [Ljava.lang.Object;
I'm getting the above exception when I run the code. What am I missing here? Any help would be appreciated.
for (Object[] revtypes : duaRevType) {
System.out.println(" ");
System.out.println(revtypes[0]);
//Printing Out DUA Values
Object[] objArray = (Object[]) revtypes[0];
DuaVO dduaVo = (DuaVO) objArray[0];
System.out.println("Dua Number: " + dduaVo.getDuaNumber());
System.out.println("Dua Short Description: " + dduaVo.getDuaShortDesc());
System.out.println("This DUA was modified on: " + revtypes[1]);
System.out.println("Revision Type: " + revtypes[2]);
// Console Output
com.envers.DuaVO@2d4c8822 // I'm trying to print this object
This DUA was modified on: DefaultRevisionEntity(id = 499, revisionDate Mar 16, 2015 11:36:38 AM)
Revision Type: ADD