From: <leg...@at...> - 2003-11-06 16:42:14
|
The following comment has been added to this issue: Author: Michail Jekimov Created: Thu, 6 Nov 2003 10:42 AM Body: Addition: the described property mapping is situated in the following context: <class ...> ... <subclass ...> ... <component ...> ... <component ...> <property name="value" formula="myfunc(VALUE)"/> ... </component> ... </component> ... </subclass> ... </class> --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-461 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-461 Summary: Mapping of formula-based properties Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Michail Jekimov Created: Thu, 6 Nov 2003 10:35 AM Updated: Thu, 6 Nov 2003 10:35 AM Environment: JDK 1.4, WinXP Professional, Tomcat 4.1 Description: When I try to define a mapping with a formula-based property I get the following exception: net.sf.hibernate.MappingException: property mapping has wrong number of columns: net.sf.hibernate.mapping.Subclass.history at net.sf.hibernate.mapping.PersistentClass.validate(PersistentClass.java:237) at net.sf.hibernate.cfg.Configuration.validate(Configuration.java:555) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:712) ... The property mapping looks like: <property name="value" formula="myfunc(VALUE)"/> This happens with Hibernate 2.1 beta 6. When I change the mapping to <property name="value" column="VALUE"/> everything works. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |