This situation can be tricky because your object walks like a duck and talks like a duck...but it's a proxy. You want the duck! You can do something like the following to lure it out:
if (asset instanceof org.hibernate.proxy.HibernateProxy) {
BankAccount ss = (BankAccount) ((HibernateProxy)asset).getHibernateLazyInitializer().getImplementation();
String desc = asset.getDescriptionTxt();
}

1 comments:
After 2 Hours of Searching, I Found this Blog. You did a goog Job sharing the Code. Thanks a lot
Post a Comment