@OneToMany(mappedBy="company", cascade = ALL) private List<Division> divisions = new Vector<Division>();
in the Division i have: @ManyToOne(cascade=MERGE) @JoinColumn(name="company_id") private Company company;
when i create a Division i always assign a company to it, so one company could have many divisions. i want to delete one division without deleting the company since there are still other divisions related to this company. However, it is not working. i believe that my problem is something wrong with the cascade, but i tried and it is nor working
please help me, i have been working on it for hours
posted 8 years ago
i solve the problem
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads