Home » Developer & Programmer » JDeveloper, Java & XML » Confuse with TopLink (JDev
Confuse with TopLink [message #355151] Wed, 22 October 2008 22:27
Messages: 8
Registered: October 2008
Location: Jakarta, Indonesia
Junior Member


I have a question with TopLink.

Here is my story step by step,
1. I have existing database so i just used "Create Java Objects from Table Wizard" in wizard i do the following
-. I created top link map named tlMap1 using my connection
-. I select 3 table : employee, department, bank and click finish
-. TopLink and POJO generated

2. I edit TopLink to add query findEmployeeById, findDepartmentById, findBankById

3. I generate session beans

4. I create data control from session beans

5. So far its okay, but than i realize in my database i FORGOT to define FOREIGN KEY relation between department and employee table.

Thats my story and my question is how can we fix that problem with minimal effort since i already had pojo (see step 1), custom query in toplink map (see step 2), session beans (see step 3) and data control (step 4).

FYI : I using JDev

[Updated on: Wed, 22 October 2008 22:43]

Report message to a moderator

Previous Topic: XML DB Comparison
Next Topic: Add "attachment region" (merged 3)
Goto Forum:

Current Time: Mon Mar 27 17:52:55 CDT 2023