The following comment has been added to this issue:
Author: sumedh inamdar
Created: Thu, 9 Dec 2004 5:02 AM
Body:
I'm very sorry.
This can be done as follows,
/**
* @hibernate.id generator-class = "sequence" column = "ROLL_NO"
unsaved-value="0"
* @hibernate.generator-param name="sequence" value="STUDENT_SEQ"
* Implement net.sf.hibernate.id.IdentifierGenerator interface to have your own
identifier generation logic.
*/
public long getRollNo() {
return RollNo;
}
This generates...
<generator class="sequence">
<param name="sequence">STUDENT_SEQ</param>
</generator>
Could somebody please document this?
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1189?page=comments#action_15427
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1189
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1189
Summary: @hibernate.id cannot specify sequence name
Type: Bug
Status: Open
Priority: Minor
Original Estimate: 1 hour
Time Spent: Unknown
Remaining: 1 hour
Project: XDoclet
Components:
Hibernate Module
Assignee: xdoclet-devel (Use for new issues)
Reporter: sumedh inamdar
Created: Thu, 9 Dec 2004 4:38 AM
Updated: Thu, 9 Dec 2004 5:02 AM
Environment: Any.
Description:
@hibernate.id tag has an attribute generator-class. It has one of the values as
'sequence'. It uses a DB sequence for ID creation. How to do this using xdoclet?
---------------------------------------------------------------------
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/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel