Al intentar guardar un Poi de tipo Lodging con precios salta una ClassCastException
java.lang.ClassCastException: info.spain.opencatalog.domain.poi.Price cannot be cast to info.spain.opencatalog.domain.poi.lodging.RoomPrice
at info.spain.opencatalog.domain.poi.types.LodgingType.validate(LodgingType.java:38)
at info.spain.opencatalog.domain.poi.types.PoiTypeRepository.validate(PoiTypeRepository.java:39)
at info.spain.opencatalog.domain.poi.BasicPoi.validate(BasicPoi.java:139)
at info.spain.opencatalog.domain.poi.lodging.Lodging.validate(Lodging.java:100)
at info.spain.opencatalog.web.controller.PoiController.update(PoiController.java:207)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Al intentar guardar un Poi de tipo Lodging con precios salta una ClassCastException