[ http://team.andromda.org:8080/jira/browse/HIB-40?page=history ]
Chad Brandon closed HIB-40:
---------------------------
Assign To: Chad Brandon (was: Martin West)
Resolution: Fixed
Added the missing primary key docs to modeling.xml
> Identifier support missing/inconsistent
> ---------------------------------------
>
> Key: HIB-40
> URL: http://team.andromda.org:8080/jira/browse/HIB-40
> Project: Hibernate Cartridge
> Type: Improvement
> Versions: 3.0M3
> Environment: Binary release, 3.0M3, Ant
> Reporter: David R. Allen
> Assignee: Chad Brandon
>
>
> According to the Hibernate Cartridge Modeling documentation page, there is no
> support for user defined identifiers for any Hibernate entity. However, the
> <<PrimaryKey>> stereotype does make an attribute an identifier. At the same
> time, the cartridge also adds an "id" field as an identifier. So the result
> is that the bean class has two identifiers generated.
> Some reasons for supporting this are:
> 1. Better consistency in models for EJB and Hibernate cartridges (assuming
> the model is really supposed to be independent of the PSM).
> 2. There are cases where entities are identified externally to a system, or
> even the database may already exist with its own identifier as a different
> SQL type, and a different name than "id".
> 3. It is a feature of Hibernate, as well as most O/R mapping packages, to be
> able to specify the object identifier to use by field, column, and type.
> Also, if the entity has a declared primary key, and further has the generator
> class set to "assigned" (or has a tag like @andromda.ejb.automaticKey =
> false, as for EJB cartridge), then the factory create method should include
> the identifier since it is coming from an external source.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://team.andromda.org:8080/jira/secure/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: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel