Can’t cast Object type [Number] to a value of type [Component]Java type of the object is java.lang.Double Dynamic compiled query: {UNIQUE={true}, OPTIONS={{datasource={mydatasource}}}, PARAMS={{param1={text}, param2={1}}}, ISCOUNTING={false}, HQL={from MyModel where AField = :param1 and AnotherField = :param2}, METHOD={AFieldAndAnotherField}}
– -- – You received this message because you are subscribed to the Google Groups “ColdBox Platform” group. For News, visit For Documentation, visit For Bug Reports, visit — You received this message because you are subscribed to the Google Groups “ColdBox Platform” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To post to this group, send email to . To view this discussion on the web visit . For more options, visit .
Yes that makes no sense. Hmthat is a relationship which expects an entity not an integer. You have modeled the relationship incorrectly.
Luis Majano
CEO
Ortus Solutions, Corp
P/F: 1-888-557-8057
– -- – You received this message because you are subscribed to the Google Groups “ColdBox Platform” group. For News, visit For Documentation, visit For Bug Reports, visit — You received this message because you are subscribed to the Google Groups “ColdBox Platform” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To post to this group, send email to . To view this discussion on the web visit . For more options, visit .
In the database, it’s a foreign key. As it currently is, it seems to work fine for CRUD (except for that issue we identified where the select box is not rendered on “new,” only on “edit”).
Also, you are passing an integer to the finder, which the cborm module WON’T magically convert it to the entity. So if that’s an entity, then pass an entity.
Type: BaseORMService.HQLQueryException
Messages: Not all named parameters have been set: [param1] [from MyObject where AnotherField = :param1 and AField = :param2]
This despite the fact that thisAF definitely does have the correct object in there. Help?