On Jul 8, 2009, at 12:28 PM, Laird Nelson wrote:

One more bug confirmation for today: when generating DDL, I am noticing that OpenJPA does not match the length or type of a JoinColumn to its referenced
column.

That is, suppose the referenced column is defined like this:
@Column(name = "title", length = 4, columnDefinition = "CHAR(4)")

...and in another class the JoinColumn is defined like this:
@JoinColumn(name = "title", referencedColumnName = "title")

When I run the DDL machinery in OpenJPA, the first column is correctly
defined as being a CHAR(4). But the foreign key column is defined as being
VARCHAR(255).

EclipseLink handles this the way I would expect; I haven't tried Hibernate.

Should I file a JIRA on this?

Sure. Thanks,

Craig


Thanks,
Laird

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to