Revision history [back]

click to hide/show revision 1
initial version

answered 2014-09-15 22:14:58 +0800

mhlic gravatar image mhlic

You have to unproxy your fx.object so that your list of objects to choose from will match type. Right now your fx.object is of type xxxx$$javassist and your list of objects for the combobox are of type xxxx. So the solution is to unproxy it.

Call this to unproxy it (replace xxxx with your type):

Object unproxied =  ((HibernateProxy) o).getHibernateLazyInitializer().getImplementation()

You have to unproxy your fx.object so that your list of objects to choose from will match type. Right now your fx.object is of type xxxx$$javassist and your list of objects for the combobox are of type xxxx. So the solution is to unproxy it.

Call this to unproxy it (replace xxxx with your type):it:

Object unproxied =  ((HibernateProxy) o).getHibernateLazyInitializer().getImplementation()
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More