[Coldbox 5.0.0] Element ENTITYNAME is undefined in ARGS

Hello,

I am using and loving Coldbox, and working with the cborm module. I recently upgraded and code that worked before is no longer working. I am getting this error

Messages: org.hibernate.HibernateException: coldfusion.runtime.UndefinedElementException: Element ENTITYNAME is undefined in ARGS.
It is halted my development, which is my problem, not yours, but any insight or ideas on how to fix this would be greatly appreciated. I’ve tried to attach the error as an image.

My code from my handler which used to work before upgrading to cborm 2.x (the latest)

property name=“ORMService” inject=“entityService”;

prc.arrAllJobRoles = ORMService.findAll(query=“from JobRole”,max=8);
writedump(prc.arrAllJobRoles);

Still trying to figure this one out. I started stepping through the code, but just not seeing why this error is being generated. Anyone maybe know something on this?

Thanks and stay safe!

Are you using active entity?

Yes, I am using Active Entity.

Are you calling super.init() in your entities?

Luis Majano
CEO
Ortus Solutions, Corp

P/F: 1-888-557-8057

Thanks for the help, but no, I am not calling super.init(). Based on what I read in the docs just now, it seems calling this method is done when you override the constructor in an entity? If so, I am not doing this and do not have an explicit init() method in my entity.

Wow, genius Luis. Replacing the line in my entity with “return super.init()” fixed it. Just so I can learn a bit, how would I or anyone known to do that in their entity? Before I just has “return this”

I have to check the docs, but in our major bump, we decided that if you inherit from active entity, you must call super.init() in order to activate all the goodness in it if you override the constructor.