Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-1470 Improving error message for HSEARCH000131 and adding exp…
…licit tests
- Loading branch information
1 parent
40c9e6d
commit 938d389
Showing
3 changed files
with
139 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
orm/src/test/java/org/hibernate/search/test/spatial/MissingSpatialPOI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.test.spatial; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
|
||
import org.hibernate.search.annotations.Field; | ||
import org.hibernate.search.annotations.Index; | ||
import org.hibernate.search.annotations.Indexed; | ||
import org.hibernate.search.annotations.Latitude; | ||
import org.hibernate.search.annotations.Longitude; | ||
import org.hibernate.search.annotations.Store; | ||
|
||
/** | ||
* @author Hardy Ferentschik | ||
*/ | ||
@Entity | ||
@Indexed | ||
public class MissingSpatialPOI { | ||
@Id | ||
Integer id; | ||
|
||
@Field(store = Store.YES) | ||
String name; | ||
|
||
@Field(store = Store.YES, index = Index.YES) | ||
String type; | ||
|
||
@Latitude | ||
double latitude; | ||
|
||
@Longitude | ||
double longitude; | ||
|
||
public MissingSpatialPOI(Integer id, String name, double latitude, double longitude, String type) { | ||
this.id = id; | ||
this.name = name; | ||
this.latitude = latitude; | ||
this.longitude = longitude; | ||
this.type = type; | ||
} | ||
|
||
public MissingSpatialPOI() { | ||
} | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public double getLatitude() { | ||
return latitude; | ||
} | ||
|
||
public double getLongitude() { | ||
return longitude; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters