db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Schindl <tomatli...@gmx.at>
Subject Re: Beginners Question Tutorial Problem
Date Tue, 14 Jun 2005 10:07:53 GMT
Thomas Dudziak wrote:
>>I've some question regarding ojb. I'm an absolute beginner with ojb
>>although I've used torque quite a lot.
>>1. The tutorial uses Java-Classes and generates the repository_user.xml
>>is the other way round also possible?
>>    I ask this because I'm designing my databases using clay an
>>eclipse-plugin(it restores the database in an XML-File) and it should be
>>straight
>>    forward to write an XSLT to convert the clay-file to a
>>repository_users.xml maybe I'm even releasing this as an eclipse plugin ;-)
> 
> 
> Not as such, mainly because OJB does not really require anything of
> the objects that get persisted (POJOs). The code for performing
> operations related to persistence (storing, retrieving, querying) is
> usually not within the persistent classes but instead in specific DAO
> classes or similar.
> So, all you'd require is a stylesheet that generates plain java
> classes, preferably with a no-arg constructor, from the clay mapping.
> And it could also generate basic DAO classes for them. You might want
> to have a look into AppFuse (over at java.net) to see what a basic DAO
> would constitute.
> 

I've take an closer look a think velocity is the way to go and generate:
* The DAO classes
* The repository_user.xml

> 
>>2. Following the tutorial when running "ant build setup-db" I get the
>>following build error:
> 
> 
> Please try the targets individually to see whether that works any better.
> 

Strange running them individually works running them using ant build 
setup-db doesn't.

Thanks for the help

Tom

> Tom
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message