[
https://jira.jboss.org/jira/browse/JBSEAM-2348?page=com.atlassian.jira.pl...
]
Dan Allen resolved JBSEAM-2348.
-------------------------------
Fix Version/s: 2.0.3.CR2
Resolution: Done
Labels: seam-gen (was: )
The problem was that seam-gen didn't even acknowledge the possibility of a one-to-one
mapping. Fortunately, from the standpoint of the UI, it can be treated just like a
many-to-one property, and thus I just had to include both to-one relationships in the same
function.
seam generate-ui fails for @OneToOne @PrimaryKeyJoinColumn annotated
fields
---------------------------------------------------------------------------
Key: JBSEAM-2348
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2348
Project: Seam
Issue Type: Bug
Components: Tools
Affects Versions: 2.0.0.GA
Environment: Seam 2.0.0.GA
JBoss Tools
Reporter: Thorsten Kunz
Assignee: Dan Allen
Fix For: 2.0.3.CR2, 2.1.0.CR1
Since I do use JBoss Tool I assume that this is cause by an error in the underlying seam
generate-ui. It fails if you have entities annotated like this:
public class User implements Serializable {
@Id
@GeneratedValue
private Long id;
@OneToOne
@PrimaryKeyJoinColumn
private UserData userData;
}
public class UserData implements Serializable {
@Id
private Long id;
@OneToOne
@PrimaryKeyJoinColumn
private User user;
}
This will result in this Exception:
org.eclipse.core.runtime.CoreException: org.hibernate.tool.hbm2x.ExporterException: Error
while processing template view/list.xhtml.ftl
org.eclipse.core.runtime.CoreException[666]: org.hibernate.tool.hbm2x.ExporterException:
Error while processing template view/list.xhtml.ftl
Caused by: freemarker.core.InvalidReferenceException: Expression property.value.typeName
is undefined on line 39, column 6 in view/list.xhtml.ftl
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira