eic-cefet-rj / sagitarii

Data Science Workflow System
Apache License 2.0
0 stars 2 forks source link

Get domains in Relation entity as LAZY. #127

Open icemagno opened 8 years ago

icemagno commented 8 years ago

Get domains in Relation entity as LAZY because every Domain have a Relation causing a loop.

    @OneToMany(orphanRemoval=true,  mappedBy="table", fetch = FetchType.EAGER)
    @Cascade(org.hibernate.annotations.CascadeType.ALL)
    @OrderBy("domainName ASC")
    private Set<Domain> domains;    
icemagno commented 8 years ago

Remove the "Relation table" attribute from Domain entity and use the new method "getTableName()"