EJB3 Migration: Problem with CMRs
Hi.
We are trying to migrate a large project from EJB2 (using entity beans and xdoclet) to EJB3 (using JPA and POJOs).
IntelliJ converts all our fields and finders, but does not convert any CMRs. Is this a bug or do we have to add these in by hand (which would be a very big job!)?
Also, IntelliJ does not put in any database annotation attributes, such as "length" or "nullable" (as it would if we created the bean from scratch); is there an easy way to add these to an existing bean?
请先登录再写评论。
Hello Robert,
Robert Lee wrote:
I cannot reproduce the problem.
All CMRs and CMPs from the ejb-jar.xml are converted if the "Replace
Entity Beans with CMP to Persistence Unit" checkbox is selected.
Migration doesn't take into account vendor specific XMLs therefore
no database metadata is created.
You can use "Replace Text" in "regular expressions" mode to add some
missing attributes to existing annotations.
Regards,
Gregory Shrago