Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2
Mapping documents: None
Code between sessionFactory.openSession() and session.close(): None
Full stack trace of any exception that occurs:
Name and version of the database you are using: Oracle10g
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
---------------------------------------------
Problem:
---------------------------------------------
I am new to Hibernate and I try to map my existing tables (115 of them) to POJO. In the beging I could not set up many-to-many and one-to-one relationships. So, I created a sub-part of schema to see if the simple set of tables will work, but it did not.
PS: My .reveng is for full table set, but I do not think that is a problem (see below):
-----------------
My schema is:
-----------------
create table acc_dt(
acc_id number(*,0) not null
);
alter table acc_dt add constraint acc_id primary key (acc_id);
create table line_abs(
line_id number(*,0) not null
);
alter table line_abs add constraint line_id primary key (line_id);
create table ac_line(
ac_line_id number(*,0) not null
);
alter table ac_line add constraint ac_line_id primary key (ac_line_id);
alter table ac_line add constraint ac_line_1 foreign key (ac_line_id) references line_abs (line_id);
create table ac_acc(
ac_line_id number(*,0) not null,
acc_id number(*,0) not null
);
alter table ac_acc add constraint ac_acc_id primary key (ac_line_id,acc_id);
alter table ac_acc add constraint ac_acc_1 foreign key (ac_line_id) references ac_line (ac_line_id);
alter table ac_acc add constraint ac_acc_2 foreign key (acc_id) references acc_dt (acc_id);
-----------------
POJO
-----------------
********
AcLine
********
package dbMapping;
// Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
* AcLine generated by hbm2java
*/
@Entity
@Table(name = "AC_LINE", schema = "NATALIA")
public abstract class AcLine extends LineAbs implements java.io.Serializable {
private Integer acLineId;
private Set<AccDt> accDts = new HashSet<AccDt>(0);
public AcLine() {
}
public AcLine(Set<AccDt> accDts) {
this.accDts = accDts;
}
@GenericGenerator(name = "generator", strategy = "foreign")
@Id
@GeneratedValue(generator = "generator")
@Column(name = "AC_LINE_ID", unique = true, nullable = false, precision = 22, scale = 0)
public Integer getAcLineId() {
return this.acLineId;
}
public void setAcLineId(Integer acLineId) {
this.acLineId = acLineId;
}
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinTable(name = "AC_ACC", schema = "NATALIA", joinColumns = { @JoinColumn(name = "AC_LINE_ID", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "ACC_ID", nullable = false, updatable = false) })
public Set<AccDt> getAccDts() {
return this.accDts;
}
public void setAccDts(Set<AccDt> accDts) {
this.accDts = accDts;
}
}
********
AccDt
********
package dbMapping;
// Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
/**
* AccDt generated by hbm2java
*/
@Entity
@Table(name = "ACC_DT", schema = "NATALIA")
public abstract class AccDt extends
dbFunction.abstractTableObjects.AbstractData_URA implements
java.io.Serializable {
private Integer accId;
private Set<AcLine> acLines = new HashSet<AcLine>(0);
public AccDt() {
}
public AccDt(Set<AcLine> acLines) {
this.acLines = acLines;
}
@Id
@GeneratedValue
@Column(name = "ACC_ID", unique = true, nullable = false, precision = 22, scale = 0)
public Integer getAccId() {
return this.accId;
}
public void setAccId(Integer accId) {
this.accId = accId;
}
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "accDts")
public Set<AcLine> getAcLines() {
return this.acLines;
}
public void setAcLines(Set<AcLine> acLines) {
this.acLines = acLines;
}
}
********
AccDtHome
********
package dbMapping;
// Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Home object for domain model class AccDt.
* @see dbMapping.AccDt
* @author Hibernate Tools
*/
@Stateless
public class AccDtHome {
private static final Log log = LogFactory.getLog(AccDtHome.class);
@PersistenceContext
private EntityManager entityManager;
public void persist(AccDt transientInstance) {
log.debug("persisting AccDt instance");
try {
entityManager.persist(transientInstance);
log.debug("persist successful");
} catch (RuntimeException re) {
log.error("persist failed", re);
throw re;
}
}
public void remove(AccDt persistentInstance) {
log.debug("removing AccDt instance");
try {
entityManager.remove(persistentInstance);
log.debug("remove successful");
} catch (RuntimeException re) {
log.error("remove failed", re);
throw re;
}
}
public AccDt merge(AccDt detachedInstance) {
log.debug("merging AccDt instance");
try {
AccDt result = entityManager.merge(detachedInstance);
log.debug("merge successful");
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public AccDt findById(Integer id) {
log.debug("getting AccDt instance with id: " + id);
try {
AccDt instance = entityManager.find(AccDt.class, id);
log.debug("get successful");
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
}
********
LineAbs
********
package dbMapping;
// Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* LineAbs generated by hbm2java
*/
@Entity
@Table(name = "LINE_ABS", schema = "NATALIA")
public abstract class LineAbs extends
dbFunction.abstractTableObjects.AbstractLine_URA implements
java.io.Serializable {
private Integer lineId;
private Set<AcLine> acLines = new HashSet<AcLine>(0);
public LineAbs() {
}
public LineAbs(Set<AcLine> acLines) {
this.acLines = acLines;
}
@Id
@GeneratedValue
@Column(name = "LINE_ID", unique = true, nullable = false, precision = 22, scale = 0)
public Integer getLineId() {
return this.lineId;
}
public void setLineId(Integer lineId) {
this.lineId = lineId;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "unresolved")
public Set<AcLine> getAcLines() {
return this.acLines;
}
public void setAcLines(Set<AcLine> acLines) {
this.acLines = acLines;
}
}
********
LineAbsHome
********
package dbMapping;
// Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Home object for domain model class LineAbs.
* @see dbMapping.LineAbs
* @author Hibernate Tools
*/
@Stateless
public class LineAbsHome {
private static final Log log = LogFactory.getLog(LineAbsHome.class);
@PersistenceContext
private EntityManager entityManager;
public void persist(LineAbs transientInstance) {
log.debug("persisting LineAbs instance");
try {
entityManager.persist(transientInstance);
log.debug("persist successful");
} catch (RuntimeException re) {
log.error("persist failed", re);
throw re;
}
}
public void remove(LineAbs persistentInstance) {
log.debug("removing LineAbs instance");
try {
entityManager.remove(persistentInstance);
log.debug("remove successful");
} catch (RuntimeException re) {
log.error("remove failed", re);
throw re;
}
}
public LineAbs merge(LineAbs detachedInstance) {
log.debug("merging LineAbs instance");
try {
LineAbs result = entityManager.merge(detachedInstance);
log.debug("merge successful");
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public LineAbs findById(Integer id) {
log.debug("getting LineAbs instance with id: " + id);
try {
LineAbs instance = entityManager.find(LineAbs.class, id);
log.debug("get successful");
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
}
-----------------
XML
-----------------
*************
AccDt.hbm.xml
*************
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="dbMapping.AccDt" table="ACC_DT" schema="NATALIA">
<meta attribute="extends" inherit="false">dbFunction.abstractTableObjects.AbstractData_URA</meta>
<meta attribute="scope-class" inherit="false">public abstract</meta>
<id name="accId" type="integer">
<column name="ACC_ID" precision="22" scale="0" />
<generator class="native" />
</id>
<set name="acLines" inverse="true" table="AC_ACC">
<key>
<column name="ACC_ID" precision="22" scale="0" not-null="true" />
</key>
<many-to-many entity-name="dbMapping.AcLine">
<column name="AC_LINE_ID" precision="22" scale="0" not-null="true" />
</many-to-many>
</set>
</class>
</hibernate-mapping>
*************
AcLine.hbm.xml
*************
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="dbMapping.AcLine" table="AC_LINE" schema="NATALIA">
<meta attribute="extends" inherit="false">LineAbs</meta>
<meta attribute="scope-field" inherit="false">public</meta>
<meta attribute="scope-class" inherit="false">public abstract</meta>
<id name="acLineId" type="integer">
<column name="AC_LINE_ID" precision="22" scale="0" />
<generator class="foreign" />
</id>
<set name="accDts" inverse="false" table="AC_ACC">
<key>
<column name="AC_LINE_ID" precision="22" scale="0" not-null="true" />
</key>
<many-to-many entity-name="dbMapping.AccDt">
<column name="ACC_ID" precision="22" scale="0" not-null="true" />
</many-to-many>
</set>
</class>
</hibernate-mapping>
*************
LineAbs.hbm.xml
*************
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Apr 18, 2008 1:39:57 PM by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="dbMapping.LineAbs" table="LINE_ABS" schema="NATALIA">
<meta attribute="extends" inherit="false">dbFunction.abstractTableObjects.AbstractLine_URA</meta>
<meta attribute="scope-class" inherit="false">public abstract</meta>
<id name="lineId" type="integer">
<column name="LINE_ID" precision="22" scale="0" />
<generator class="native" />
</id>
<set name="acLines" inverse="true">
<key>
<column name="AC_LINE_ID" precision="22" scale="0" not-null="true" unique="true" />
</key>
<one-to-many class="dbMapping.AcLine" />
</set>
</class>
</hibernate-mapping>
-------------------------------------
hibernate.reveng.xml
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="CLOB" hibernate-type="string" />
<sql-type jdbc-type="DECIMAL" hibernate-type="integer" />
<sql-type jdbc-type="VARCHAR" length='1' hibernate-type="yes_no" />
<sql-type jdbc-type="DECIMAL" hibernate-type="integer" not-null="true" />
<sql-type jdbc-type="DECIMAL" hibernate-type="integer" not-null="false" />
</type-mapping>
<!-- add tables from NATALIA schema only -->
<table-filter match-schema="NATALIA" match-name=".*" />
<!-- BIN$ is recycle bin tables in Oracle -->
<table-filter match-name="BIN$.*" exclude="true" />
<!-- set up extend/class scope properties for the tables in Oracle -->
<table-filter match-name=".*_LINE">
<meta attribute="extends">LineAbs</meta>
<meta attribute="scope-class">public abstract</meta>
<meta attribute="scope-field">public</meta>
</table-filter>
<table-filter match-name="LINE_ABS">
<meta attribute="extends">dbFunction.abstractTableObjects.AbstractLine_URA</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name=".*_FTR">
<meta attribute="extends">FeatureAbs</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name="FEATURE_ABS">
<meta attribute="extends">dbFunction.abstractTableObjects.AbstractFeature_URA</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name=".*_DT">
<meta attribute="extends">dbFunction.abstractTableObjects.AbstractData_URA</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name=".*_CONDITION">
<meta attribute="extends">ConditionAbs</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name="CONDITION_ABS">
<meta attribute="extends">dbFunction.abstractTableObjects.AbstractCondition_URA</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name=".*_TAXON">
<meta attribute="extends">TaxonFtr</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name="ENTRY_A" >
<meta attribute="extends">EntryFtr</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<table-filter match-name="ENTRY_B">
<meta attribute="extends">EntryFtr</meta>
<meta attribute="scope-class">public abstract</meta>
</table-filter>
<!-- table allows you to override/define how reverse engineering are done for a specific table -->
<!-- FEATURES -->
<table name = "ENTRY_FTR">
<foreign-key constraint-name="ENTRY_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TAXON_FTR">
<foreign-key constraint-name="TAXON_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "METAMOTIF_FTR">
<foreign-key constraint-name="METAMOTIF_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "GENE_FTR">
<foreign-key constraint-name="GENE_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "UNIALN_FTR">
<foreign-key constraint-name="UNIALN_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "SEQUENCE_FTR">
<foreign-key constraint-name="SEQUENCE_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "PROTEIN_FTR">
<foreign-key constraint-name="PROTEIN_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "UNIRULE_FTR">
<foreign-key constraint-name="UNIRULE_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "MOTIF_FTR">
<foreign-key constraint-name="MOTIF_1" foreign-table="FEATURE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<!-- ENTRIES COPIES -->
<table name = "ENTRY_A">
<foreign-key constraint-name="ENTRY_A_1" foreign-table="ENTRY_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "ENTRY_B">
<foreign-key constraint-name="ENTRY_B_1" foreign-table="ENTRY_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<!-- TAXONS -->
<table name = "OG_TAXON">
<foreign-key constraint-name="OG_TAXON_1" foreign-table="TAXON_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "OS_TAXON">
<foreign-key constraint-name="OS_TAXON_1" foreign-table="TAXON_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "OC_TAXON">
<foreign-key constraint-name="OC_TAXON_1" foreign-table="TAXON_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "OX_TAXON">
<foreign-key constraint-name="OX_TAXON_1" foreign-table="TAXON_FTR">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<!-- CONDITIONS -->
<table name = "PATTERN_MATCH_CONDITION">
<foreign-key constraint-name="PATTERN_MATCH_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FT_CONDITION">
<foreign-key constraint-name="FT_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TAXON_CONDITION">
<foreign-key constraint-name="TAXON_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "PATHWAY_PROPERTY_CONDITION">
<foreign-key constraint-name="PATHWAY_PROPERTY_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FEATURE_CONDITION">
<foreign-key constraint-name="FEATURE_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FT_GROUP_CONDITION">
<foreign-key constraint-name="FT_GROUP_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TRIGGERED_CONDITION">
<foreign-key constraint-name="TRIGGERED_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "PATTERN_CONDITION">
<foreign-key constraint-name="PATTERN_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "SIZE_CONDITION">
<foreign-key constraint-name="SIZE_CONDITION_1" foreign-table="CONDITION_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<!-- LINES -->
<table name = "AC_LINE">
<foreign-key constraint-name="AC_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "COMMENT_LINE">
<foreign-key constraint-name="COMMENT_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TOPOLOGY_LINE">
<foreign-key constraint-name="TOPOLOGY_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "XX_LINE">
<foreign-key constraint-name="XX_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TR_LINE">
<foreign-key constraint-name="TR_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "KW_LINE">
<foreign-key constraint-name="KW_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "AC_LINE">
<foreign-key constraint-name="AC_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "GN_LINE">
<foreign-key constraint-name="GN_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FUSION_LINE">
<foreign-key constraint-name="FUSION_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "WARN_LINE">
<foreign-key constraint-name="WARN_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "INTERNAL_COMMENT_LINE">
<foreign-key constraint-name="INTERNAL_COMMENT_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "EXAMPLE_LINE">
<foreign-key constraint-name="EXAMPLE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "SIZE_LINE">
<foreign-key constraint-name="SIZE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "DR_LINE">
<foreign-key constraint-name="DR_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "REPEAT_LINE">
<foreign-key constraint-name="REPEAT_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "RELATED_LINE">
<foreign-key constraint-name="RELATED_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "DC_LINE">
<foreign-key constraint-name="DC_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FUNCTION_LINE">
<foreign-key constraint-name="FUNCTION_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "DE_LINE">
<foreign-key constraint-name="DE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "CC_LINE">
<foreign-key constraint-name="CC_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "GO_LINE">
<foreign-key constraint-name="GO_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "ID_LINE">
<foreign-key constraint-name="ID_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "PLASMID_LINE">
<foreign-key constraint-name="PLASMID_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "NAME_LINE">
<foreign-key constraint-name="NAME_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "HISTORY_LINE">
<foreign-key constraint-name="HISTORY_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "SCOPE_LINE">
<foreign-key constraint-name="SCOPE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "TEMPLATE_LINE">
<foreign-key constraint-name="TEMPLATE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "CHOP_LINE">
<foreign-key constraint-name="CHOP_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FT_CONSTRAINT_LINE">
<foreign-key constraint-name="FT_CONSTRAINT_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FTFEATURE_LINE">
<foreign-key constraint-name="FTFEATURE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "FT_FROM_LINE">
<foreign-key constraint-name="FT_FROM_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
<table name = "DUPLICATE_LINE">
<foreign-key constraint-name="DUPLICATE_LINE_1" foreign-table="LINE_ABS">
<many-to-one exclude = "true" />
</foreign-key>
</table>
</hibernate-reverse-engineering>
THANK YOU IN ADVANCE!!!!!!!!!!!!