The table has no key, composite or otherwise.  Middlegen creates a Hibernate
.xbm file for the table with a <composite> element containing all the fields
in the table, but it omits all the attributes, including class="".  hbm2java
then creates a POJO, but it has no @hibernate.id token, and no PK class is
created.  Then xdoclet runs and tries to create a .xbm file from the POJO,
but fails because there's no @hibernate.id and no getID() method.

No big deal though, since I've no need to recreate the .xbm file from the
POJO.  

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Konstantin
Priblouda
Sent: Friday, November 19, 2004 2:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] hibernatedoclet fails on table with no
primary key



--- [EMAIL PROTECTED] wrote:

> Is there a way around this?  I suppose I could
> comment out the running of
> XDoclet from Middlegen's ant script, but it seems
> like this would be common
> with legacy systems that (sadly) sometimes fail to
> identify primary keys.

Well, some kind of primary key shall be there. 
( Composite one... )



regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
... Sucht gerade nach neuen Projekt oder Festanstelung....
Plugins for xdoclet-2 are released. check it out at:
http://www.sourceforge.net/projects/xdoclet-plugins/
----[ http://www.pribluda.de ]------------------------

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to