def build_image(self, pdf_path, img_path):
with wand.image.Image(filename=pdf_path) as img:
img.save(filename=img_path)
我添加这样的产品
@Entity
public class Shop{
@Id(assignable = true)
long id;
@Backlink(to = "shop")
public ToMany<Product> products;
}
@Entity
public class Product{
@Id(assignable = true)
long id;
public ToOne<Shop> shop;
double price;
}
但是当我更新产品价格并再次更新
List<Shop> values = get using api;
getShopBox().put(values);
getShopBox().getAll();// works
当我从数据库中检索时,它返回ToMany 0的大小