-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: [Lucene] Keyword Id
PostPosted: Tue Oct 10, 2006 11:22 am 
Regular
Regular

Joined: Tue Oct 07, 2003 1:13 pm
Posts: 70
Location: Paris, France
Hi all,
It seems applying the annotation Lucene annotations to a field is not supported although applying it to a property is ok.


Code:
@MappedSuperclass
@AccessType("field")
public abstract class BaseEntity
{
   @Id
   @GeneratedValue(generator="ID_STORE")
        @Keyword(id=true) -> NOT SUPPORTED
   private Long id;
...
}



Code:
@MappedSuperclass
@AccessType("property")
public abstract class BaseEntity
{
   private Long id;

   @Id
   @GeneratedValue(generator="ID_STORE")
        @Keyword(id=true) -> SUPPORTED
        public Long getId() { return this.id; }
...
}


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 10, 2006 11:30 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes it is due to Gavin lazyness ;-), I need to make fields work too.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 10, 2006 12:11 pm 
Regular
Regular

Joined: Tue Oct 07, 2003 1:13 pm
Posts: 70
Location: Paris, France
The work is not so difficult, rather tedious... I can understand Gavin :-)
If you want any help, tell me.
Richard


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 10, 2006 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
dharma wrote:
The work is not so difficult, rather tedious... I can understand Gavin :-)
If you want any help, tell me.
Richard


Sure it would be great if you can implement the feature and provide a patch.
Be sure to take the code from
http://anonsvn.jboss.org/repos/hibernate/branches/Lucene_Integration/

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 10, 2006 7:42 pm 
Regular
Regular

Joined: Tue Oct 07, 2003 1:13 pm
Posts: 70
Location: Paris, France
emmanuel wrote:
dharma wrote:
The work is not so difficult, rather tedious... I can understand Gavin :-)
If you want any help, tell me.
Richard


Sure it would be great if you can implement the feature and provide a patch.
Be sure to take the code from
http://anonsvn.jboss.org/repos/hibernate/branches/Lucene_Integration/


Ok, I'll do it and will provide a patch soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.