Message:

  A new issue has been created in JIRA.

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

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


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-359
    Summary: Hibernate XDoclet issues
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: XDoclet
  Component: Hibernate Module
   Versions:
             1.2 Beta 3

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

    Created: Fri, 7 Mar 2003 7:42 PM
    Updated: Fri, 7 Mar 2003 7:42 PM
Environment: standard

Description:
I have a base object class which defines the ID: 

/** 
* @hibernate.id 
* unsaved-value="0" 
* generator-class="sequence" 
*/ 
public long getId() 
{ 
return _id; 
} 

Then I have a few persisitent classes that extend this base class, but provide their 
own sequence name... 

Three problems/questions: 

- unsaved-value="0" generates an error with the latest CVS xdoclet it requires 
none,any,null 
- how can I specify the name of the sequence with the new Hibernate2 named-parameter 
format 
- how can I specifiy a different sequence name in the different subclass without 
having to redefine getId(). I am actually using the following pattern for sequence 
names: {table_name}_ID 

It would be nice to specify: 
/** 
* @hibernate.id 
* unsaved-value="0" 
* generator-class="sequence" 
* generator-parameter-name="{table}_ID" 
*/ 
public long getId() 
{ 
return _id; 
}

and table would extend to the value of the table attribute of the @hibernate.class 
tag... Can this be done or is XDoclet too limited for this. 

Also,

It would also be nice to add a default-cascade in xdoclet so I don't have to specify: 

cascade="save-update" 

for all @hibernate.many-to-one 

I cannot even change the <hibernate-mapping> tag since xdoclet will generate: 

cascade="none" 

for all @hibernate.many-to-one if no cascade is specified


---------------------------------------------------------------------
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: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to