tracker issue : CF-3041196

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

Bug 82493:When mapping many-to-one associations, you have to specify the fkcolumn, like so:property name="courseType" fieldtype="many-to-one" cfc="ClassType" notnull="true" fkcolumn="courseType_id";However, you

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Mark Mandel / Mark Mandel (mark.mandel)

Created: 03/23/2010

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

When mapping many-to-one associations, you have to specify the fkcolumn, like so:property name="courseType" fieldtype="many-to-one" cfc="ClassType" notnull="true" fkcolumn="courseType_id";However, you shouldn't have to specify it, as Hibernate will choose a default for you, and has already created the tables with that default in place.You should only have to write:property name="courseType" fieldtype="many-to-one" cfc="ClassType" notnull="true";and let Hibernate decide what to call the FK column itself.
Method:


Result:

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

Watson Bug ID:	3041196

External Customer Info:
External Company:  
External Customer Name: Mark Mandel
External Customer Email: 3EA9517D445A9E8999201549
External Test Config: 03/23/2010

Attachments:

Comments: