[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-104) Make @DocumentId optional and rely on @Id

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Nov 6 09:50:04 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31623#action_31623 ] 

Hardy Ferentschik commented on HSEARCH-104:
-------------------------------------------

Here comes a rebellious thought - how about we make Annotation a hard dependency? Given that Annotations moved back into Hibernate Core and the proclaimed goal is to move away from xml configuration towards annotations, why would it be so bad to have Annotations as a hard dependency? In fact we could make some code (eg event listener registration) easier.  And of course one could still use XML for the entity mappings.

What are the hard reasons not to depend on Annotations?

> Make @DocumentId optional and rely on @Id
> -----------------------------------------
>
>                 Key: HSEARCH-104
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-104
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: mapping
>            Reporter: Emmanuel Bernard
>            Priority: Minor
>             Fix For: 3.1.0.CR1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list