I think this is a newbie question, so if there's a link to documentation that explains what I screwed up and what I'm supposed to do, thanks in advance.
Environment (in part): JDK 1.5.0 Update 6, Hibernate 3.1.3, mySQL 5.0.22, Eclipse 3.2, MyEclipse 5.0
Here's a distilled version of my situation (hopefully): I have two objects, Submission and SubmissionStep. I'm querying for all Submission objects via this HQL:
"from Submission"
Unexpectedly, I'm getting back all Submission objects AND all SubmissionStep objects.
Has anybody seen this behavior before?
Also, if I need to provide more context, please let me know. The DDL that Hibernate generates for the tables is as follows:
Code:
drop table if exists seccheck.Submission
drop table if exists seccheck.SubmissionSteps
create table seccheck.Submission (
SubmissionID integer not null auto_increment,
UserMachineID integer not null,
MachineStateID integer not null,
SubmitDateTime integer not null,
SubmitIP integer not null,
GUID tinyblob not null,
primary key (SubmissionID)
) type=MyISAM
create table seccheck.SubmissionSteps (
StepID integer not null auto_increment,
ComponentID integer not null,
OrderID integer not null,
ShortName varchar(20) not null,
LongName varchar(128) not null,
primary key (StepID)
) type=MyISAM
Thanks,
Philip Sloss