We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187f087 commit aeea1bcCopy full SHA for aeea1bc
spring-data-mongodb/src/main/java/org/springframework/data/document/mongodb/geo/Circle.java
@@ -15,6 +15,7 @@
15
*/
16
package org.springframework.data.document.mongodb.geo;
17
18
+import org.springframework.data.annotation.PersistenceConstructor;
19
import org.springframework.util.Assert;
20
21
/**
@@ -28,6 +29,7 @@ public class Circle {
28
29
private Point center;
30
private double radius;
31
32
+ @PersistenceConstructor
33
public Circle(Point center, double radius) {
34
Assert.notNull(center);
35
Assert.isTrue(radius >= 0, "Radius must not be negative!");
0 commit comments