Hey all,

i am using ojb and xdoclet-ojb for my first time. I have just now
the following problem (maybe you can't also solve my problem, because you do not use xdoclet-ojb-module (xom)?):

I want to use xom and torque for automatically create the database (mysql in my case). But till now i was not able to advise xom, to apply default values for the table columns, which are created for the java fields. I need this, when i set the concerning field to autoincrement="true" (db) and do not set a value to the java field before storing the object to the table. I alway get an error (missing value/no default set). (I do not want to set a value, because i use this field as unique identifier for inheritance relationship, and try to minimize effort in
implementing java classes).

On the other hand i could set ojb to make the autoincrement, then i do not need a default value, but then i have the problem, that (for a very strange reason i did not work out till now, additionally due to the fact, that there is no error or any warning message) the ojb specific database tables are not created! However they are needed, as an error
occures when running the application.

For any help i would be very grateful.

thx,
Daniel

Alessandro Colantoni schrieb:
Hi Sergey and Armin.
I'm using Ojb since 0.9, so 4-5 years, even if I just used the persistence
broker.
I see that Ojb is not growing up, anyway I never had a problem with it, and
I think it is a great product.
I think that now I'm ojb dependent and I couldn't work without it.
I work in Spain and in the last 2 years here people started with ORM, and
all the world went to Hibernate.
When I started with ojb and I talked about ORM people didn't know what this
was.
I never felt the need to switch to Hibernate, because ojb is perfect for my
needing, and I always had the freedom to choose technology which work with.
Anyway I'm afraid that some day some manager will order me to switch, to
align the company technology, but I have arguments to say no.
Why switch to a similar technology and pay the effort, if this one never
gave problems?, is so easy to use?
I'm not a so good engineer, anyway if you want, just tell me what can I do
to help. I will organize my work so to have time for ojb. In some week I
could be ready to start.
I developed a framework called mandragora http://mandragora.sourceforge.net/ ,
I already talked in this forum about it, but nobody was interested.
It is based on Ojb, with the idea to make it more easy to use, hiding it, in
the same way ojb hide sql. The idea is to put a layer above it.
So I developed  lots of methods, from the easy findbyprimarykey to more
complex updateTrees, to update very structured business object just in a
line of code. The idea is that in a MVN application, the controller calls
methods of and interface BD (Business Delegate), and this do all the work
using a generic DAO based on Ojb. It is very, configurable so that can be
choosed the class implementing The BD and the DAO.
The BD and DAO can be easily extended
Have a look, even if documentation is very poor, (I'm working on it).

Tank you again for ojb
Best Regards
Alessandro Colantoni




On 8/23/07, Armin Waibel <[EMAIL PROTECTED]> wrote:
Hi Sergey,

Manukyan, Sergey wrote:
Folks,

It has been a while since last release of 1.0.4. I have been a user of
ojb since 1.0.2... for about 4 years... but going forward concerns me.
With no new releases I would like to ask how does the perspective looks
for this project?
Well, it depends on the community. Currently it seems that only a few
people are able to (interested in) spend time for OJB. I will continue
my work on OJB.

Is work currently being done?
Yep! Will check in some improvements for OJB's xdoclet module within the
next few days (docs and license notes are up to date - did this a few
ago) and then build an unofficial 1.5rc1 to give user the ability to
test the upcoming 1.0.5 release before official release.

Why such a big gap in
releases?
Lack of manpower (nobody wants to do the administrative stuff ;-)).

Are there still plans to ship 1.1?
I started work on trunk/1.1?/2.0? and locally I have a lot of files to
check in (1.0.x backports + new stuff) and many ideas in mind. But
without support of other developer it's hard to realize.

regards,
Armin

Regards,

-Sergey


**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to