tracker issue : CF-3041136

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82409:More descriptive, precise error messages when attempting to use the ORM features would be very helpful to debug mistakes made, especially when defining properties of an entity that is persisted using

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Nando Breiter / Nando Breiter (Deva Nando)

Created: 03/11/2010

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 274273

Priority/Frequency: Minor / Unknown

Locale/System: English / Mac 10 All

Vote Count: 17

Problem:

More descriptive, precise error messages when attempting to use the ORM features would be very helpful to debug mistakes made, especially when defining properties of an entity that is persisted using hibernate. Something else that would be helpful in this regard would be more complete documentation outlining how to define relationships between entities, with examples that include a wider variety of parameters. 
Method:

Leave a semicolon off the end of a  property definition in a component with persistent="true" for instance, reload the application calling ormReload(), and the error message returned is:Mapping for component Employee not found. Either the mapping for this component is missing or the application must be restarted to generate the mapping.orIf the property attribute fkcolumn isn't properly specified, a range of difficult to decipher error messages might be returned, such as "Error during DDL export. Can't create table './puli/#sql-53_4b.frm' (errno: 150) "There are many property attributes possible that aren't covered in a thorough manner in the documentation, and trying to get these properties correctly defined for more complex real world applications leaves a developer working somewhat in the dark. Thanks for any enhancement here you can provide.
Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041136

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Deva Nando
External Customer Email: 61A63ED94455784D992016B6
External Test Config: 03/11/2010

Attachments:

Comments: