From: <leg...@at...> - 2003-11-07 09:15:14
|
The following comment has been added to this issue: Author: Michail Jekimov Created: Fri, 7 Nov 2003 3:13 AM Body: Is it intended to support formulas for properties of components? --------------------------------------------------------------------- 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: Closed Priority: Major Resolution: WON'T FIX Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Michail Jekimov Created: Thu, 6 Nov 2003 10:35 AM Updated: Thu, 6 Nov 2003 6:13 PM 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 |