Suppose We have 3 classes
public abstract class Shape { {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
}
public class Circle extends Shape {
private double radius;
}
public class Book {
private Shape shape;
}
How can i find Radius using Specification written for BOOK
Suppose We have 3 classes public abstract class Shape { { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; }
public class Circle extends Shape { private double radius; }
public class Book { private Shape shape; }
How can i find Radius using Specification written for BOOK