Eric Lacroix
2002-07-22 13:33:03 UTC
Hi,
Jboss can't find proper attribute in the postgresql database where field
have '_' characters.
For exemple, Jboss returns: ERROR: Attribute 'fkpersontypeid' not found
when field in database is fk_persontype_id.
When editing jbosscmp-jdbc.xml to add :
<cmp-field>
<field-name>fkPersontypeId</field-name>
<column-name>fk_persontype_id</column-name>
</cmp-field>
in section :
<entity>
<ejb-name>Person</ejb-name>
<table-name>person</table-name>
...
before building the jar, it works fine.
The xdoclet tag
* @ejb.persistence column-name="fk_persontype_id"
is present in the source code generated by middlegen.
It seems that it's an xdoclet problem:
what do you think of that ?
Is there a difference between mainstream xdoclet and xdoclet in
middlegen ?
I may post the same message in xdoclet-user ml ?
Thx,
Eric.
Jboss can't find proper attribute in the postgresql database where field
have '_' characters.
For exemple, Jboss returns: ERROR: Attribute 'fkpersontypeid' not found
when field in database is fk_persontype_id.
When editing jbosscmp-jdbc.xml to add :
<cmp-field>
<field-name>fkPersontypeId</field-name>
<column-name>fk_persontype_id</column-name>
</cmp-field>
in section :
<entity>
<ejb-name>Person</ejb-name>
<table-name>person</table-name>
...
before building the jar, it works fine.
The xdoclet tag
* @ejb.persistence column-name="fk_persontype_id"
is present in the source code generated by middlegen.
It seems that it's an xdoclet problem:
what do you think of that ?
Is there a difference between mainstream xdoclet and xdoclet in
middlegen ?
I may post the same message in xdoclet-user ml ?
Thx,
Eric.