]
Tomasz Bartczak updated JBSEAM-4433:
------------------------------------
Attachment: seam bugs.7z
example project (entities + generated UI) which shows compilation errors in generated
classes
seam:gen generate-ui produces bad home* and list* for entites that
are N-N relationships
----------------------------------------------------------------------------------------
Key: JBSEAM-4433
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4433
Project: Seam
Issue Type: Bug
Components: Tools
Affects Versions: 2.2.0.GA
Reporter: Tomasz Bartczak
Attachments: seam bugs.7z
class like
public class FilmActor implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
protected FilmActorPK filmActorPK;
@JoinColumn(name = "actor_id", referencedColumnName = "actor_id",
nullable = false, insertable = false, updatable = false)
@ManyToOne(optional = false, fetch = FetchType.LAZY)
private Actor actor;
@JoinColumn(name = "film_id", referencedColumnName = "film_id",
nullable = false, insertable = false, updatable = false)
@ManyToOne(optional = false, fetch = FetchType.LAZY)
private Film film;
gives bad home:
[...]
public FilmActorId getFilmActorFilmActorPK() {
return (FilmActorId) getId();
}
[...]
because there is no FilmActorId - there is FilmActorPK
and
@Override
protected FilmActor createInstance() {
FilmActor filmActor = new FilmActor();
filmActor.setId(new FilmActorId()); //error
return filmActor;
}
because there should be filmActor.setFilmActorPK(new FilmActorPK());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: