From: <leg...@at...> - 2003-10-16 14:09:04
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-405 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-405 Summary: SchemaExport unable to find getter for tO or cC properties. Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: toolset Versions: 2.0.3 Assignee: Reporter: Brian Duguid Created: Thu, 16 Oct 2003 9:03 AM Updated: Thu, 16 Oct 2003 9:03 AM Environment: Coding and using tool in JBuilder 9 Enterprise Description: The SchemaExport tool works fantastic with the exception of compiling for properties that have the second letter in uppercase even though the first leter is lowercase. For example, I have an object that is used to store e-mail communications. The "to," "cc," and "bcc" addresses properties are written as tO, cC, and bCC so the getter and setters are "pretty" (getTO(), getCC(), getBCC()). I am able to fix the error by having the first two letters of the property as lowercase and the third letter as uppercase is acceptable. i.e. property bcC with getBcC() works fine. The error that is thrown read as: ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) rethrown as net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) ... 10 more ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.MappingException: duplicate import: EmailRecord at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:60) at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:108) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:841) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Error initializing configuration: duplicate import: EmailRecord Thanks. --------------------------------------------------------------------- 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 |