Skip to content

Act-Eclipselink could not support weaving #8

@leeaee

Description

@leeaee
  1. Define classes with @onetomany and @manytoone
public class UserCart  {
    ...
    @NotNull
    @OneToMany(mappedBy = "userCart", fetch = FetchType.LAZY)
    public List<Product> products;
}
public class Product implements SimpleBean {
    ...
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_cart_id")
    public UserCart userCart;
}
  1. Add configuration: db.default.eclipselink.weaving=true/static
  2. Add -javaagent:eclipselink.jar to JVM command line to enable Dynamic Weaving

When ACT startup, it still displays the warning

 Reverting the lazy setting on the OneToOne or ManyToOne attribute [userCart] for the entity class [class Product] since weaving was not enabled or did not occur.

Could ACT support eclipselink weaving now?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions