Thread: AW: AW: [Objectbridge-developers] Q: How to setup the database?
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2001-08-08 09:37:22
|
Hi Ivan, > -----Urspr=FCngliche Nachricht----- > Von: Ivan Toshkov [mailto:to...@cr...] > Gesendet: Mittwoch, 8. August 2001 10:50 > An: Mahler Thomas > Cc: obj...@li... > Betreff: Re: AW: [Objectbridge-developers] Q: How to setup=20 > the database? >=20 >=20 > Hi Mahler, >=20 > Thanks for your help. >=20 > I have some more questions, though. >=20 > 1) How is the file `slq1.txt' generated? Is there a way to=20 > create such > file for other objects, as well? this file was written manually. it is used by the instantDB ScriptTool = to perform database operations like creating tables and insertinmg test = data. What "other objects" do you have in mind? >=20 > 2) The setup[.bat] runs class=20 > `org.enhydra.instantdb.ScriptTool', which > is obviously part of InstantDB. At least I couldn't find a way to set > the user and password properties and therefore couldn't use it with > postgresql. The documentation for the instantDB ScriptTool is here: http://www.lutris.com/products/projects/instantDB/software/documentation= /idb 4_0/sample-applications.html#scriptool As far as I see, there is no option to specify a user or password :-( So you will have to write the DDL manually... Will not be too difficult = for just the two tables...=20 >=20 > I work on a web-based reservation system, using java=20 > servlets, jsps and > xml/xslt. We have developed our own persistence layer, but it=20 > isn't too > mature, yet. It supports only forward engineering and the=20 > developert has > little or no control over the table structuring. I'm in a process of > research for alternatives and I like the ObjectBridge very much. >=20 > I will be very glad to contribute to the project. You are welcome to contribute. OJB currently has no tools for forward- = or reverse engineering or graphically composing the O/R mappings. So your know-how in this area will help a lot! cheers, Thomas >=20 > Cheers, > Ivan >=20 |
From: Mahler T. <tho...@it...> - 2001-08-09 09:40:26
Attachments:
sql1.txt
|
Hi Ivan, I found a way to use the ScriptTool to connect to a given Database with username and password. You have to edit the sql1.txt file as follows: ; First load the JDBC driver and open the demo-database. d COM.ibm.db2.jdbc.app.DB2Driver; o jdbc:db2:dbalias username password; (this is a sample for DB 2). Attached you find a modified sql1.txt that works fine with DB2. Maybe = you can try it with postgresql. HTH Thomas > -----Urspr=FCngliche Nachricht----- > Von: Mahler Thomas [mailto:tho...@it...] > Gesendet: Mittwoch, 8. August 2001 11:36 > An: 'Ivan Toshkov' > Cc: obj...@li... > Betreff: AW: AW: [Objectbridge-developers] Q: How to setup=20 > the database? >=20 >=20 > Hi Ivan, >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Ivan Toshkov [mailto:to...@cr...] > > Gesendet: Mittwoch, 8. August 2001 10:50 > > An: Mahler Thomas > > Cc: obj...@li... > > Betreff: Re: AW: [Objectbridge-developers] Q: How to setup=20 > > the database? > >=20 > >=20 > > Hi Mahler, > >=20 > > Thanks for your help. > >=20 > > I have some more questions, though. > >=20 > > 1) How is the file `slq1.txt' generated? Is there a way to=20 > > create such > > file for other objects, as well? >=20 > this file was written manually. it is used by the instantDB=20 > ScriptTool to > perform database operations like creating tables and=20 > insertinmg test data. >=20 > What "other objects" do you have in mind? >=20 > >=20 > > 2) The setup[.bat] runs class=20 > > `org.enhydra.instantdb.ScriptTool', which > > is obviously part of InstantDB. At least I couldn't find a=20 > way to set > > the user and password properties and therefore couldn't use it with > > postgresql. >=20 > The documentation for the instantDB ScriptTool is here: > http://www.lutris.com/products/projects/instantDB/software/doc umentation/idb 4_0/sample-applications.html#scriptool As far as I see, there is no option to specify a user or password :-( So you will have to write the DDL manually... Will not be too difficult = for just the two tables...=20 >=20 > I work on a web-based reservation system, using java=20 > servlets, jsps and > xml/xslt. We have developed our own persistence layer, but it=20 > isn't too > mature, yet. It supports only forward engineering and the=20 > developert has > little or no control over the table structuring. I'm in a process of > research for alternatives and I like the ObjectBridge very much. >=20 > I will be very glad to contribute to the project. You are welcome to contribute. OJB currently has no tools for forward- = or reverse engineering or graphically composing the O/R mappings. So your know-how in this area will help a lot! cheers, Thomas >=20 > Cheers, > Ivan >=20 _______________________________________________ Objectbridge-developers mailing list Obj...@li... http://lists.sourceforge.net/lists/listinfo/objectbridge-developers |
From: Ivan T. <to...@cr...> - 2001-08-08 10:26:02
|
Hmm, Obviously, there will be bigger problems with postgresql. It appears that OID is reserved column name in postgresql. Is there an easy fix for that in OJB? On 08 Aug 2001 11:35:43 +0200, Mahler Thomas wrote: > > What "other objects" do you have in mind? Well, the business objects for other applications than the tutorials. > > You are welcome to contribute. OJB currently has no tools for forward- or > reverse engineering or graphically composing the O/R mappings. So your > know-how in this area will help a lot! > I'll have to dig a little more in the XML mapping descriptors. Do you think they will be enough to create the tables? It definetly works for the Product class, but this is the simplest case. |
From: Ivan T. <to...@cr...> - 2001-08-08 11:30:58
|
On 08 Aug 2001 13:05:36 +0300, Ivan Toshkov wrote: > Hmm, > > Obviously, there will be bigger problems with postgresql. It appears > that OID is reserved column name in postgresql. Is there an easy fix for > that in OJB? > It worked! I changed OID and POSITION columns to _OID and POS respectively. |