Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-390


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-390
    Summary: Property case problem
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: XDoclet
  Component: None

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Benoit Menendez

    Created: Tue, 18 Mar 2003 1:51 AM
    Updated: Tue, 18 Mar 2003 1:51 AM

Description:
It appears that XDoclet does not use Inspector.decapitalize to figure out the name of 
properties.

I have a persistent class with the following property:

/**
* @hibernate.property
*/
public String getDNPath()
{
return _DNPath;
}

public void setDNPath(String DNPath)
{
_DNPath = DNPath;
}

The actual property naming rule should identify this property as "DNPath" but the 
XDoclet generator creates:

<property
name="dNPath"
type="java.lang.String"
update="true"
insert="true"
column="dNPath"
/>

Which causes an error when configuring:

2003-03-17 17:07:33,500 FATAL [kms.objects] Error initializing object data
source
net.sf.hibernate.PropertyNotFoundException: Could not find a getter for
dNPath in class cch.Employee
at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:183)
at
net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPers
ister.java:655)
at
net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:611)
at
net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:201)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:57
1)

More detail on the hibernate forum at
http://sourceforge.net/forum/forum.php?thread_id=833205&forum_id=128638



---------------------------------------------------------------------
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/xdoclet/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to