The following comment has been added to this issue: Author: Jonas Hoepfner Created: Tue, 18 Jan 2005 3:00 AM Body: Following this I posted my class "A". It has two many-to-one references to class "B". The not-null property is ignored. Class B is a joined-subclass.
-------------------------------------------------------------- package example; import java.io.Serializable; /** * @hibernate.class table="A" */ public class A implements Serializable { private Integer id; private String name; private example.B fromB; private example.B toB; public A() { } /** * @hibernate.id * generator-class="native" * type="java.lang.Integer" * column="id" * */ public Integer getId() { return this.id; } private void setId(Integer id) { this.id = id; } /** * @hibernate.property * column="Name" * length="255" * not-null="true" * */ public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * @hibernate.many-to-one * not-null="true" * outer-join="false" * @hibernate.column name="from_idB" * */ public example.B getFromB() { return this.fromB; } public void setFromB(example.B fromB) { this.fromB = fromB; } /** * @hibernate.many-to-one * not-null="true" * outer-join="false" * @hibernate.column name="second_idB" * */ public example.B getToB() { return this.toB; } public void setToB(example.B toB) { this.toB = toB; } } --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1239?page=comments#action_15653 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1239 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1239 Summary: @hibernate.many-to-one unique="true" and not-null="true" ignored Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Hibernate Module Versions: 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Jonas Hoepfner Created: Mon, 17 Jan 2005 11:10 AM Updated: Tue, 18 Jan 2005 3:00 AM Description: The "unique" and the "not-null" parameters of the "many-to-one" tag are ignored. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel