-->
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.  [ 2 posts ] 
Author Message
 Post subject: [Hibernate Search] What is the annotation for Integer/Long?
PostPosted: Sat Jul 07, 2007 5:50 am 
Regular
Regular

Joined: Tue Nov 04, 2003 12:37 pm
Posts: 57
Hello,

What annotation I can use for the data type Integer/Long/Double?

In this case, how can I define the Lucene query for that?
For example,

Code:
@Indexed
public class {
   ...
   private int age;


   // What annotation I should use here ???
   public int getAge() {
      return age;
   }

}


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It's a good question. it depends what you want to do. check for the PaddedIntegerBridge in the test suite. It allows comparison between numbers

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.