-->
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.  [ 1 post ] 
Author Message
 Post subject: POI class in Hibernate-search-4.2.1.Final - syntax error
PostPosted: Fri Feb 01, 2013 9:04 pm 
Regular
Regular

Joined: Fri Feb 04, 2011 8:34 pm
Posts: 66
Hi, I tried to test POI entity in the hibernate-search-4.2.1.Final test suite.
I copied the POI class to my ejb project in Netbeans 7.2.1 editor and found that Netbeans raised error message for its syntax error on the POI class name:

Quote:
The class must use a consistent access type (either field or property).

There is no ID defined for this entity hierarchy.


When I hit ctrl-enter keys, it shown me hint how to resolve it, its recommendation is "unify field access" and "unify property access".

Netbeans doesn't like the following codes in the POI class:

Code:
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
   @FieldBridge(impl = SpatialFieldBridgeByQuadTree.class)
   @Embedded
   public Coordinates getLocation() {
      return new Coordinates() {
         @Override
         public Double getLatitude() {
            return latitude;
         }

         @Override
         public Double getLongitude() {
            return longitude;
         }
      };
   }

Is there any way I can rectify this error from netbeans?
The project is a maverized ear project.

Thanks
Sam


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

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.