<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: Single column mapped to two diff tables failing</title><link href="https://sourceforge.net/p/hibernatepojoge/bugs/2/" rel="alternate"/><link href="https://sourceforge.net/p/hibernatepojoge/bugs/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/hibernatepojoge/bugs/2/</id><updated>2011-11-03T12:44:59Z</updated><subtitle>Recent changes to 2: Single column mapped to two diff tables failing</subtitle><entry><title>Single column mapped to two diff tables failing</title><link href="https://sourceforge.net/p/hibernatepojoge/bugs/2/" rel="alternate"/><published>2011-11-03T12:44:59Z</published><updated>2011-11-03T12:44:59Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3aa8c941fd653811310eaf850667428885beb42f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;NullPointerException encountered when we have a table column which is being referred as foreign key with two tables. &lt;br /&gt;
Example: columnname1 is part of foreign key with two different tables&lt;/p&gt;
&lt;p&gt;create table tblname1&lt;br /&gt;
(   columnname1 varchar(50) not null,&lt;br /&gt;
columnname2 varchar(4000) not null,&lt;br /&gt;
columnname3 varchar(50) not null,&lt;br /&gt;
columnname4 varchar(50) not null,&lt;br /&gt;
columnname4 varchar(30) not null,&lt;br /&gt;
columnname6 int not null,&lt;br /&gt;
columnname7 timestamp,  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;constraint tc_pk primary key (columnname1 , columnname3 , columnname4 ),&lt;br /&gt;
constraint tc_fk foreign key (columnname1 , columnname3 , columnname4 )&lt;br /&gt;
references tblother1 (columnname1 , columnname3 , columnname4 )&lt;br /&gt;
on delete cascade,&lt;br /&gt;
constraint tc_ri_fk foreign key (columnname1)&lt;br /&gt;
references tblother2(columnname1)&lt;br /&gt;
on delete cascade );&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>