First, read the disclaimer: I'm new at Hibernate so there's
likely an oversight on my part.
Can anyone offer an example or some pointers on this
scenario: Let's take the CRM example included with FDS. There is a
company table and employee table. Let's extend the CRM sample and
look at the company table. Perhaps I want to have a company table
and then add an industry table with a foreign key (instead of the
static array that is populated in the original example) to the
company table. Simple one (industry)-to-many (companies)
relationship, right?
So - my questions:
1) What's the suggested way to populate the industry combo
box with industry names? Do you just add the query during your app
initialization process?
2) (Bigger question for me) - how do you resolve the foreign
key in Flex? Do you have to build write the code in AS to resolve
the foreign key for industry and then populate the company table
with the proper industry id? I know you set up your company POJO
with the Industry object and I know Hibernate will handle some of
this, but I'm unclear on an elegant way to do this through Flex.
I'd REALLY, REALLY appreciate any discussion....thanks,
Headjoog
Now I've been able to set up Hibernate to query / populate
single tables per the example. BUT....if I wanted to populate the
combo box