You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Gus Heck <gu...@olin.edu> on 2003/11/12 22:25:09 UTC
Reposit
This is probably a terribly noob question, but is there a good way to
generate my object mappings for the repository.xml? Seems like a lot of
tedium to do it for more than one or two classes.
-Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: repository.xml
Posted by Brian McCallister <mc...@forthillcompany.com>.
Right now you need to have both the jdo and the repository.xml
mappings. It is a pain =/
A cleaner JDO implementation based around the OTM is under development,
but won't be advertised in a release until post 1.0. It is probably the
highest priority post-1.0 objective and stubs and partial
implementations are in place now.
the PersistenceBrokerFactory.defaultPersistenceBroker().clearCache();
call just flushes the cache for demonstration purposes. There is no JDO
api specification for clearing the cache =)
-Brian
On Wednesday, November 12, 2003, at 05:05 PM, Gus Heck wrote:
> Wait... Do I need to do this to use JDO... or is this covered by the
> .jdo files? The tutorial has this line that says:
>
> TODO: Put information about the .jdo files
>
> Unfortunately by the time the tutorial gets to JDO it has implemented
> all the other API's so I am having difficulty figuring out what parts
> of the previous work are required to use JDO.
>
> Also I notice that the tutorial section on JDO has this line:
>
>
>
> Which is clearly not part of the JDO API. This appears to mean that I
> will depend on the non-JDO OJB persistance framework. Is there a way
> around this?
>
> -Gus
>
>
> Gus Heck wrote:
>
>> This is probably a terribly noob question, but is there a good way to
>> generate my object mappings for the repository.xml? Seems like a lot
>> of tedium to do it for more than one or two classes.
>>
>> -Gus
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
repository.xml
Posted by Gus Heck <gu...@olin.edu>.
Wait... Do I need to do this to use JDO... or is this covered by the
.jdo files? The tutorial has this line that says:
TODO: Put information about the .jdo files
Unfortunately by the time the tutorial gets to JDO it has implemented
all the other API's so I am having difficulty figuring out what parts of
the previous work are required to use JDO.
Also I notice that the tutorial section on JDO has this line:
PersistenceBrokerFactory.defaultPersistenceBroker().clearCache();
Which is clearly not part of the JDO API. This appears to mean that I
will depend on the non-JDO OJB persistance framework. Is there a way
around this?
-Gus
Gus Heck wrote:
> This is probably a terribly noob question, but is there a good way to
> generate my object mappings for the repository.xml? Seems like a lot
> of tedium to do it for more than one or two classes.
>
> -Gus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by A Leg <ha...@yahoo.com>.
Hi Brian
I had the same problem.
Antonio gave me the solution and I get my ojb code OK.
Andre
Antonio Gallardo wrote:
>Brian McCallister dijo:
>
>
>>Druid is really cool, but I have never actually gotten the code
>>generation to work. When I hook it to an existing DB, import the
>>entities and go to code generation and I get an error saying datatypes
>>are set on all of my foreign keys =/
>>
>>
>
>Hi Brian:
>
>You need to define "DD equiv." field for your datatypes at the database
>level:
>
>Select the database.
>Select the "Data Types" tab.
>For every datatype define the datatype you want to use in Java. Example:
>Druid Type --> DD equiv.
>bit --> Boolean
>Varchar --> String,
>
>etc.
>
>Then try again.
>
>BTW, try better the CVS version, because the official release had some bug
>in OJB generation.
>
>Best Regards,
>
>Antonio Gallardo.
>
>
>>-Brian
>>
>>On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
>>
>>
>>
>>>Gus Heck dijo:
>>>
>>>
>>>>This is probably a terribly noob question, but is there a good way to
>>>>generate my object mappings for the repository.xml? Seems like a lot
>>>>of
>>>>tedium to do it for more than one or two classes.
>>>>
>>>>
>>>Hi Gus:
>>>
>>>Druid - http:// druid.sf.net/ - Please, download it from the CVS.
>>>
>>>Best Regards,
>>>
>>>Antonio Gallardo
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Robert S. Sfeir" <ro...@codepuccino.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oh yeah and if you want to work with the tables you have to drag them
out of the created import folder into your database icon, otherwise you
won't get the right menu choices and stuff like that.
By the way, I still don't see how Druid can generate OJB repository files.
R
Jakob Braeuchi wrote:
| hi antonio,
|
| how can i import existing tables ?
|
| jakob
|
| Antonio Gallardo wrote:
|
|> Brian McCallister dijo:
|>
|>> Druid is really cool, but I have never actually gotten the code
|>> generation to work. When I hook it to an existing DB, import the
|>> entities and go to code generation and I get an error saying datatypes
|>> are set on all of my foreign keys =/
|>
|>
|>
|> Hi Brian:
|>
|> You need to define "DD equiv." field for your datatypes at the database
|> level:
|>
|> Select the database.
|> Select the "Data Types" tab.
|> For every datatype define the datatype you want to use in Java. Example:
|> Druid Type --> DD equiv.
|> bit --> Boolean
|> Varchar --> String,
|>
|> etc.
|>
|> Then try again.
|>
|> BTW, try better the CVS version, because the official release had some
|> bug
|> in OJB generation.
|>
|> Best Regards,
|>
|> Antonio Gallardo.
|>
|>> -Brian
|>>
|>> On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
|>>
|>>
|>>> Gus Heck dijo:
|>>>
|>>>> This is probably a terribly noob question, but is there a good way to
|>>>> generate my object mappings for the repository.xml? Seems like a lot
|>>>> of
|>>>> tedium to do it for more than one or two classes.
|>>>
|>>>
|>>> Hi Gus:
|>>>
|>>> Druid - http:// druid.sf.net/ - Please, download it from the CVS.
|>>>
|>>> Best Regards,
|>>>
|>>> Antonio Gallardo
|>>>
|>>>
|>>> ---------------------------------------------------------------------
|>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>>
|>>>
|>>
|>>
|>>
|>> ---------------------------------------------------------------------
|>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>
|>
|>
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|> For additional commands, e-mail: ojb-user-help@db.apache.org
|>
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
| For additional commands, e-mail: ojb-user-help@db.apache.org
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/uOcd+cV9vuB27SARAkRVAJ4omNLmjqIk7JGbcDe2GZrvLpejdwCgodAR
7BGP2HNDuiBmMk3GErjMPk0=
=s27k
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Daniel R. Ambrosio" <jo...@uol.com.br>.
Hello Guys,
The problem of insufficient privilieges I had was solved with using: exp
im_full_database.
thank you Antonio for your help!
Daniel
Daniel R. Ambrosio wrote:
> Hi Gallardo,
>
> Thanks for the help!! :)
>
> []s
> Daniel
>
> Antonio Gallardo wrote:
>
>> Daniel R. Ambrosio dijo:
>>
>>
>>> Hello Guys,
>>>
>>
>>
>> Hi Daniels,
>>
>> I am forwarding your request to Druid maillist. The internals of JDBC
>> connection is out of my knowledges in Druid. It is also very new
>> stuff in
>> Druid. But I am sure Andrea or Bruno will be glad to answer your
>> question.
>> :-D
>>
>> Please don't take this mail in a bad sense. I am just trying to help you
>> to solve the problem.
>>
>> To Druid Team:
>>
>> Druid is getting HOT in Apache OJB users. I think it is a very nice news
>> to both teams. And I am very happy that this happens. :-D
>> Please check the message below....
>>
>> Best Regards,
>>
>> Antonio Gallardo
>>
>>
>>
>>> I keep getting the message: ORA-01031: Insuficient Privileges??
>>>
>>> What structure from the DB does Druid try to access while importing
>>> Entities?? Which privileges should I have.
>>>
>>> I use the same user I am trying now to connect to Druid in SQL
>>> Navigator, and there, I can see the tables´ structures without a
>>> problem.
>>>
>>> any help would be appreciated!!
>>>
>>> thanks,
>>> Daniel
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Daniel R. Ambrosio" <jo...@uol.com.br>.
Hi Gallardo,
Thanks for the help!! :)
[]s
Daniel
Antonio Gallardo wrote:
>Daniel R. Ambrosio dijo:
>
>
>>Hello Guys,
>>
>>
>
>Hi Daniels,
>
>I am forwarding your request to Druid maillist. The internals of JDBC
>connection is out of my knowledges in Druid. It is also very new stuff in
>Druid. But I am sure Andrea or Bruno will be glad to answer your question.
>:-D
>
>Please don't take this mail in a bad sense. I am just trying to help you
>to solve the problem.
>
>To Druid Team:
>
>Druid is getting HOT in Apache OJB users. I think it is a very nice news
>to both teams. And I am very happy that this happens. :-D
>Please check the message below....
>
>Best Regards,
>
>Antonio Gallardo
>
>
>
>>I keep getting the message: ORA-01031: Insuficient Privileges??
>>
>>What structure from the DB does Druid try to access while importing
>>Entities?? Which privileges should I have.
>>
>>I use the same user I am trying now to connect to Druid in SQL
>>Navigator, and there, I can see the tables´ structures without a problem.
>>
>>any help would be appreciated!!
>>
>>thanks,
>>Daniel
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Daniel R. Ambrosio dijo:
> Hello Guys,
Hi Daniels,
I am forwarding your request to Druid maillist. The internals of JDBC
connection is out of my knowledges in Druid. It is also very new stuff in
Druid. But I am sure Andrea or Bruno will be glad to answer your question.
:-D
Please don't take this mail in a bad sense. I am just trying to help you
to solve the problem.
To Druid Team:
Druid is getting HOT in Apache OJB users. I think it is a very nice news
to both teams. And I am very happy that this happens. :-D
Please check the message below....
Best Regards,
Antonio Gallardo
> I keep getting the message: ORA-01031: Insuficient Privileges??
>
> What structure from the DB does Druid try to access while importing
> Entities?? Which privileges should I have.
>
> I use the same user I am trying now to connect to Druid in SQL
> Navigator, and there, I can see the tables´ structures without a problem.
>
> any help would be appreciated!!
>
> thanks,
> Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Daniel R. Ambrosio" <jo...@uol.com.br>.
Hello Guys,
I keep getting the message: ORA-01031: Insuficient Privileges??
What structure from the DB does Druit try to access while importing
Entities?? Which privileges should I have.
I use the same user I am trying now to connect to Druid in SQL
Navigator, and there, I can see the tables´ structures without a problem.
any help would be appreciated!!
thanks,
Daniel
Robert S. Sfeir wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've figured out how to import existing tables if anyone is interested.
>
> Setup your jdbc driver
> Create a new project
> Right click and create a new Database. I created an empty one
> Switch to the jdbc tab on the right
> Choose the appropriate URL for your DB and fill in the info
> Type in Username and password and click connect at the bottom
> After you're connected switch to the Structure tab
> Right click on Jdbc Database icon
> Choose Import Entities
>
> Check everything
>
> Import
>
> Done
>
> R
> Jakob Braeuchi wrote:
>
> | hi antonio,
> |
> | how can i import existing tables ?
> |
> | jakob
> |
> | Antonio Gallardo wrote:
> |
> |> Brian McCallister dijo:
> |>
> |>> Druid is really cool, but I have never actually gotten the code
> |>> generation to work. When I hook it to an existing DB, import the
> |>> entities and go to code generation and I get an error saying
> datatypes
> |>> are set on all of my foreign keys =/
> |>
> |>
> |>
> |> Hi Brian:
> |>
> |> You need to define "DD equiv." field for your datatypes at the
> database
> |> level:
> |>
> |> Select the database.
> |> Select the "Data Types" tab.
> |> For every datatype define the datatype you want to use in Java.
> Example:
> |> Druid Type --> DD equiv.
> |> bit --> Boolean
> |> Varchar --> String,
> |>
> |> etc.
> |>
> |> Then try again.
> |>
> |> BTW, try better the CVS version, because the official release had some
> |> bug
> |> in OJB generation.
> |>
> |> Best Regards,
> |>
> |> Antonio Gallardo.
> |>
> |>> -Brian
> |>>
> |>> On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
> |>>
> |>>
> |>>> Gus Heck dijo:
> |>>>
> |>>>> This is probably a terribly noob question, but is there a good
> way to
> |>>>> generate my object mappings for the repository.xml? Seems like a
> lot
> |>>>> of
> |>>>> tedium to do it for more than one or two classes.
> |>>>
> |>>>
> |>>> Hi Gus:
> |>>>
> |>>> Druid - http:// druid.sf.net/ - Please, download it from the CVS.
> |>>>
> |>>> Best Regards,
> |>>>
> |>>> Antonio Gallardo
> |>>>
> |>>>
> |>>>
> ---------------------------------------------------------------------
> |>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> |>>> For additional commands, e-mail: ojb-user-help@db.apache.org
> |>>>
> |>>>
> |>>
> |>>
> |>>
> |>> ---------------------------------------------------------------------
> |>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> |>> For additional commands, e-mail: ojb-user-help@db.apache.org
> |>>
> |>
> |>
> |>
> |> ---------------------------------------------------------------------
> |> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> |> For additional commands, e-mail: ojb-user-help@db.apache.org
> |>
> |>
> |
> |
> | ---------------------------------------------------------------------
> | To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> | For additional commands, e-mail: ojb-user-help@db.apache.org
> |
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQE/uOaU+cV9vuB27SARAvFZAJ9O5ZK41NGku94fXEnx7xxJ+CePPQCg+f3f
> l3ffuBhMB+ibWEIuYIxKZ6U=
> =QjIb
> -----END PGP SIGNATURE-----
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Robert S. Sfeir" <ro...@codepuccino.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've figured out how to import existing tables if anyone is interested.
Setup your jdbc driver
Create a new project
Right click and create a new Database. I created an empty one
Switch to the jdbc tab on the right
Choose the appropriate URL for your DB and fill in the info
Type in Username and password and click connect at the bottom
After you're connected switch to the Structure tab
Right click on Jdbc Database icon
Choose Import Entities
Check everything
Import
Done
R
Jakob Braeuchi wrote:
| hi antonio,
|
| how can i import existing tables ?
|
| jakob
|
| Antonio Gallardo wrote:
|
|> Brian McCallister dijo:
|>
|>> Druid is really cool, but I have never actually gotten the code
|>> generation to work. When I hook it to an existing DB, import the
|>> entities and go to code generation and I get an error saying datatypes
|>> are set on all of my foreign keys =/
|>
|>
|>
|> Hi Brian:
|>
|> You need to define "DD equiv." field for your datatypes at the database
|> level:
|>
|> Select the database.
|> Select the "Data Types" tab.
|> For every datatype define the datatype you want to use in Java. Example:
|> Druid Type --> DD equiv.
|> bit --> Boolean
|> Varchar --> String,
|>
|> etc.
|>
|> Then try again.
|>
|> BTW, try better the CVS version, because the official release had some
|> bug
|> in OJB generation.
|>
|> Best Regards,
|>
|> Antonio Gallardo.
|>
|>> -Brian
|>>
|>> On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
|>>
|>>
|>>> Gus Heck dijo:
|>>>
|>>>> This is probably a terribly noob question, but is there a good way to
|>>>> generate my object mappings for the repository.xml? Seems like a lot
|>>>> of
|>>>> tedium to do it for more than one or two classes.
|>>>
|>>>
|>>> Hi Gus:
|>>>
|>>> Druid - http:// druid.sf.net/ - Please, download it from the CVS.
|>>>
|>>> Best Regards,
|>>>
|>>> Antonio Gallardo
|>>>
|>>>
|>>> ---------------------------------------------------------------------
|>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>>
|>>>
|>>
|>>
|>>
|>> ---------------------------------------------------------------------
|>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>
|>
|>
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|> For additional commands, e-mail: ojb-user-help@db.apache.org
|>
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
| For additional commands, e-mail: ojb-user-help@db.apache.org
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/uOaU+cV9vuB27SARAvFZAJ9O5ZK41NGku94fXEnx7xxJ+CePPQCg+f3f
l3ffuBhMB+ibWEIuYIxKZ6U=
=QjIb
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by "Robert S. Sfeir" <ro...@codepuccino.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
And just figured out how to generate the FULL schema using Druid... VERY
VERY VERY SWEET!
To do that:
1- Click on the DB icon
2- Choose Generation
3- Right Click Generic
4- Add Module
5- Choose Apache OJB
6- Fill in the information in both tabs
7- Right click the Apache OJB icon and choose generate...
DONE!
R
Jakob Braeuchi wrote:
| hi antonio,
|
| how can i import existing tables ?
|
| jakob
|
| Antonio Gallardo wrote:
|
|> Brian McCallister dijo:
|>
|>> Druid is really cool, but I have never actually gotten the code
|>> generation to work. When I hook it to an existing DB, import the
|>> entities and go to code generation and I get an error saying datatypes
|>> are set on all of my foreign keys =/
|>
|>
|>
|> Hi Brian:
|>
|> You need to define "DD equiv." field for your datatypes at the database
|> level:
|>
|> Select the database.
|> Select the "Data Types" tab.
|> For every datatype define the datatype you want to use in Java. Example:
|> Druid Type --> DD equiv.
|> bit --> Boolean
|> Varchar --> String,
|>
|> etc.
|>
|> Then try again.
|>
|> BTW, try better the CVS version, because the official release had some
|> bug
|> in OJB generation.
|>
|> Best Regards,
|>
|> Antonio Gallardo.
|>
|>> -Brian
|>>
|>> On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
|>>
|>>
|>>> Gus Heck dijo:
|>>>
|>>>> This is probably a terribly noob question, but is there a good way to
|>>>> generate my object mappings for the repository.xml? Seems like a lot
|>>>> of
|>>>> tedium to do it for more than one or two classes.
|>>>
|>>>
|>>> Hi Gus:
|>>>
|>>> Druid - http:// druid.sf.net/ - Please, download it from the CVS.
|>>>
|>>> Best Regards,
|>>>
|>>> Antonio Gallardo
|>>>
|>>>
|>>> ---------------------------------------------------------------------
|>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>>
|>>>
|>>
|>>
|>>
|>> ---------------------------------------------------------------------
|>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|>> For additional commands, e-mail: ojb-user-help@db.apache.org
|>>
|>
|>
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
|> For additional commands, e-mail: ojb-user-help@db.apache.org
|>
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
| For additional commands, e-mail: ojb-user-help@db.apache.org
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/uOsa+cV9vuB27SARAmnYAJ9lfNtW+Q+YOc/dDlNB6sg1WpQJjACglK/u
zWxqgAr7B/OdPDvc+e9Y7tE=
=iNaB
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Jakob Braeuchi dijo:
> hi antonio,
>
> great, it works now :)
Great to hear that! :-DDD
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi antonio,
great, it works now :)
mille grazie
jakob
Antonio Gallardo wrote:
> Jakob Braeuchi dijo:
>
>>hi antonio,
>>
>>and how do i do it, please !
>
>
> 1-On the left panel create a new empty database
> 2-Select the new create database, some tags appear on the right panel.
> 3-Click on the Jdbc panel. Fill your data there and after connect it
> 4-Click on Structure tab
> 5-select the "Jdbc database" and open it
> 6-Select "public" and right click on them
> 7-On the popup menu select import entities.
>
> That is all!
>
> Remember to define your datatypes and define some generators for you
> database.
>
> Druid id really easy and great!
>
> Best Regards,
>
> Antonio Gallardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Jakob Braeuchi dijo:
> hi antonio,
>
> and how do i do it, please !
1-On the left panel create a new empty database
2-Select the new create database, some tags appear on the right panel.
3-Click on the Jdbc panel. Fill your data there and after connect it
4-Click on Structure tab
5-select the "Jdbc database" and open it
6-Select "public" and right click on them
7-On the popup menu select import entities.
That is all!
Remember to define your datatypes and define some generators for you
database.
Druid id really easy and great!
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi antonio,
and how do i do it, please !
jakob
Antonio Gallardo wrote:
> Jakob Braeuchi dijo:
>
>>hi antonio,
>>
>>how can i import existing tables ?
>
>
> Yep.
>
> Best Regards,
>
> Antonio Gallardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Jakob Braeuchi dijo:
> hi antonio,
>
> how can i import existing tables ?
Yep.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi antonio,
how can i import existing tables ?
jakob
Antonio Gallardo wrote:
> Brian McCallister dijo:
>
>>Druid is really cool, but I have never actually gotten the code
>>generation to work. When I hook it to an existing DB, import the
>>entities and go to code generation and I get an error saying datatypes
>>are set on all of my foreign keys =/
>
>
> Hi Brian:
>
> You need to define "DD equiv." field for your datatypes at the database
> level:
>
> Select the database.
> Select the "Data Types" tab.
> For every datatype define the datatype you want to use in Java. Example:
> Druid Type --> DD equiv.
> bit --> Boolean
> Varchar --> String,
>
> etc.
>
> Then try again.
>
> BTW, try better the CVS version, because the official release had some bug
> in OJB generation.
>
> Best Regards,
>
> Antonio Gallardo.
>
>>-Brian
>>
>>On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
>>
>>
>>>Gus Heck dijo:
>>>
>>>>This is probably a terribly noob question, but is there a good way to
>>>>generate my object mappings for the repository.xml? Seems like a lot
>>>>of
>>>>tedium to do it for more than one or two classes.
>>>
>>>Hi Gus:
>>>
>>>Druid - http:// druid.sf.net/ - Please, download it from the CVS.
>>>
>>>Best Regards,
>>>
>>>Antonio Gallardo
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Druid, was: Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Brian McCallister dijo:
> Druid is really cool, but I have never actually gotten the code
> generation to work. When I hook it to an existing DB, import the
> entities and go to code generation and I get an error saying datatypes
> are set on all of my foreign keys =/
Hi Brian:
You need to define "DD equiv." field for your datatypes at the database
level:
Select the database.
Select the "Data Types" tab.
For every datatype define the datatype you want to use in Java. Example:
Druid Type --> DD equiv.
bit --> Boolean
Varchar --> String,
etc.
Then try again.
BTW, try better the CVS version, because the official release had some bug
in OJB generation.
Best Regards,
Antonio Gallardo.
>
> -Brian
>
> On Wednesday, November 12, 2003, at 05:19 PM, Antonio Gallardo wrote:
>
>> Gus Heck dijo:
>>> This is probably a terribly noob question, but is there a good way to
>>> generate my object mappings for the repository.xml? Seems like a lot
>>> of
>>> tedium to do it for more than one or two classes.
>>
>> Hi Gus:
>>
>> Druid - http:// druid.sf.net/ - Please, download it from the CVS.
>>
>> Best Regards,
>>
>> Antonio Gallardo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Reposit
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Gus Heck dijo:
> This is probably a terribly noob question, but is there a good way to
> generate my object mappings for the repository.xml? Seems like a lot of
> tedium to do it for more than one or two classes.
Hi Gus:
Druid - http:// druid.sf.net/ - Please, download it from the CVS.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Reposit
Posted by Brian McCallister <mc...@forthillcompany.com>.
I really like using the xdoclet module in the contrib/ directory. The
"ant reversedb" tool works well too.
Thomas wrote up a nice article looking at different options at
http://db.apache.org/ojb/howto-build-mappings.html
-Brian
On Wednesday, November 12, 2003, at 04:25 PM, Gus Heck wrote:
> This is probably a terribly noob question, but is there a good way to
> generate my object mappings for the repository.xml? Seems like a lot
> of tedium to do it for more than one or two classes.
>
> -Gus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org