Reduce size of address to support indexing with mysql.
lbs-gitea/maptology/master This commit looks good
lbs-gitea/maptology/master This commit looks good
This commit is contained in:
@@ -54,7 +54,7 @@ public class PlaceEntity extends AbstractUserSpecificEntity {
|
||||
/**
|
||||
* An address string.
|
||||
*/
|
||||
@Column(length=200)
|
||||
@Column(length=175)
|
||||
private String address;
|
||||
|
||||
/**
|
||||
|
||||
@@ -296,6 +296,9 @@ public class GeocoderSessionBean {
|
||||
}
|
||||
}
|
||||
address = b.toString();
|
||||
if (address.length() > 175) {
|
||||
address = address.substring(0, 175);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.log(Level.WARNING, "Remote geocoding failed for place " + place + " at " + longitude + ", " + latitude, e);
|
||||
|
||||
Reference in New Issue
Block a user