adding new tables and creating relationships
Hi,
Been trying to enhance Jtrac myself. Although this is my first time to use Spring. But I get to change some. What's been bugging my head for 36 hours now is that of adding a new table in the Jtrac database. By the way, I am using MySql. i tried to create one, adding E.G. AppOnwer.java in the domain directory. update hibernateJtracDao. Added some lines in Jtrac.java, jtracDao and JtracImpl and jtrac.hbm.xml. But when i run the ant jetty-start, I am getting a null pointer on the id which is a variable in my AppUser. Well, what I am trying to do is redeploy Jtrac without any tables from its database. I can't seem to underatanf why does it need a value instantly.
Anyway, what I'm trying to accomplish is I will be using one of the default drop down list. Then reference its id to this new database name AppOwner. Then using those default freetext fields, I will disable edit properties and they will be filled out by the values in the AppOwner database. Like each application has there own Application Owner populated automatically.
Has anyone have an insight about this? Any feedback is greatly appreciated.
Need it asap.
thanks guy
jay
UPDATED: 8:26 PM MNL TIME/ 8:26 EST
Hi everyone,
I was able to create a database and its relationshp. now i've been burning my head again to this part where I added a new page in Wicket. And I can't seem to get it to work.
E.g
Added ApplicationOwnerForm.hmtl
Added AppluicationOwnerForm.java
I keep getting the errir Constructor error. One from OptionPage.java.
Can someone give me a valid example of a constructor? with two database variables named app_owner and l2_resource.
I'll try to look around and will update everyone if I found the answer.
thanks thanks