Hello everyone,
This time my question is related to the use of models.
I followed this guide step by step, which I found here on the forum:
https://wiki.idempiere.org/en/Developing_Plug-Ins_-_IModelFactory
I have my X_ models, and I also created some M_ classes that extend their corresponding X_ models.
However, I’m still having casting issues — specifically this error:
class org.adempiere.model.GenericPO cannot be cast to class org.tropicatech.payroll.models.M_PayrollEmployee (org.adempiere.model.GenericPO is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader 667f0e1b; org.tropicatech.payroll.models.M_PayrollEmployee is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader 2088dbaf)
It seems like my class that implements IModelFactory is simply being ignored, and I’m not sure why.
I’ve attached a screenshot with all the related files.
Thanks for the quick response!
I tried what you told me, and that was it! Thank you so much!