Re: Compiling OJB_1_0_RELEASE fails since yesterday

2005-01-26 Thread Christian Pesch
Thomas Dudziak wrote: OJB requires a recent Ant version to build. Then you might want to update the ant under lib/ in the CVS? $ ll lib/ant* -rw-r--r-- 1 cpesch staff 952104 8. Jan 2004 lib/ant-1.6.0.jar -rw-r--r-- 1 cpesch staff 68986 8. Jan 2004 lib/ant-junit.jar -rw-r--r-- 1 cpesch

Re: Strange behaviour for PersistenceBroker.getCount() on ReportQueryByCriteria

2005-01-26 Thread Christian Pesch
Jakob Braeuchi wrote: do you know what ms-sql does, when the first value is a string ? i'm thinking of using something like this : 'OJB' + col1 + col2 If col1 and col2 are the names of int columns, you have cast them like: 'OJB.' + cast(col1 as varchar(11)) + cast(col2 as varchar(11)) DB2 is

Compiling OJB_1_0_RELEASE fails since yesterday

2005-01-25 Thread Christian Pesch
Hi, this have been introduced in since 1.144.2.13 or 1.144.2.14 of the build.xml: $ sh bin/build.sh Buildfile: build.xml detect-jdk: environment-check: BUILD FAILED /home/cpesch/ojb-1.0.x-from-cvs/db-ojb/build.xml:101: The fail type doesn't support the nested condition element. Total time: 1

J2SE 1.5

2005-01-05 Thread Christian Pesch
Hi everybody, I'd like to use the new Java 5 features and found myself stuck with XDoclet, which does not support generics: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-984 When will XDoclet support Java 5 and when will OJB support XDoclet 2 and Java 5? -- Christian

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-23 Thread Christian Pesch
Ilias Lazaridis wrote: [..] But it seems that stubberness and egoism rules in this project. Please stop insulting the people that have shown significant patience in explaining you the simple truth. There are other ojb users, which might really need their help.

Re: Collection + foreignkey missing

2004-10-18 Thread Christian Pesch
Thomas Dudziak wrote: BOUESSAY Christian wrote: There is an association (1:n) between 2 classes: [..] In the project-schema.xml, there is no foreign-key declaration for the table OM ... What did I miss? For collections, the generation of foreignkeys in the database is currently not supported

Re: Collection + foreignkey missing

2004-10-18 Thread Christian Pesch
Thomas Dudziak wrote: [..] Implementing this analysis therefore requires determining what cases can possibly arise and then quite some implementation work (esp. unit tests). Are there plans to implement this? - To unsubscribe,

Object2ByteArrFieldConversion changes between rc6 and 1.0.0 ?

2004-09-08 Thread Christian Pesch
Hi, somewhere between rc6 and 1.0.0 the Object2ByteArrFieldConversion seems to have started to compress the database content with GZIPInputStream. Having searched for a while, I still couldn't find any documentation on that. Can anyone verify this? -- Christian

Re: Object2ByteArrFieldConversion changes between rc6 and 1.0.0 ?

2004-09-08 Thread Christian Pesch
Armin Waibel wrote: Not correct, this class near not modified since OJB 0.9 and use compression all the time. [..] Thanks. Actually, I've preloaded some tables with data, which contained non-compressed text for byte[]/LONGVARBINARY columns. And my testsuite works with rc6 while failing

Re: Unable to use xdoclet-ojb-module.

2004-09-02 Thread Christian Pesch
psamathos wrote: Any other ideas? Are you using ant = 1.6? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-13 Thread Christian Pesch
Thomas Dudziak wrote: The fix should be a simple change of the compile-classpath at the beginning of the build.xml of the ojb-blank project to: [..] That works for me, thanks. -- Christian - To unsubscribe, e-mail: [EMAIL

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-12 Thread Christian Pesch
Thomas Dudziak wrote: [..] I tried ojb-blank with a basic ojb.collection tag with ManageableArrayList as the collection-class, and it worked. Same when I declared the variable to be of type ManageableCollection. I'd say you have a problem either with your classpath I can't imagine what would be

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-12 Thread Christian Pesch
Thomas Dudziak wrote: [..] Now, what I find strange is that none of the snippets that you posted was actually using a ManageableCollection, neither in code nor in the XDoclet comment, so why should XDoclet try to search for it ? I could send you all the classes, if you don't mind. It's just over

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-12 Thread Christian Pesch
Thomas Dudziak wrote: I get only two problems: [..] I'll fix that. then it runs through in a freshly downloaded ojb-blank environment. That's it! I've used ant 1.5.4 in my environment, which causes the problem. With 1.6.2 it runs through. BTW, which ant version did you use? -- Christian

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-12 Thread Christian Pesch
Thomas Dudziak wrote: * Missing conversion classes : - org.metamusic.core.impl.conversion.Role2VarcharFieldConversion. - org.metamusic.core.impl.conversion.Locale2VarcharFieldConversion Actually, they were in the archive. And I can reproduce the error doclet.XDocletException: The class

Re: XDoclet problems after rc6 to 1.0.0 update

2004-08-11 Thread Christian Pesch
Thomas Dudziak wrote: I'm clueless how to bring xdoclet to work after I've migrated from 1.0 rc6 to 1.0.0. The xdoclet taskdef now contains a classpathref, but I couldn't let it find the org.apache.ojb.broker.ManageableCollection. Please have a look at the build file in the ojb-blank.jar which

XDoclet problems after rc6 to 1.0.0 update

2004-08-10 Thread Christian Pesch
Hi there, I'm clueless how to bring xdoclet to work after I've migrated from 1.0 rc6 to 1.0.0. The xdoclet taskdef now contains a classpathref, but I couldn't let it find the org.apache.ojb.broker.ManageableCollection. Any hints welcome -- Christian The ant output guard-repository-files:

Re: Field length control

2003-12-02 Thread Christian Pesch
Gus Heck wrote: [..] /** * The actual data that needs to be persisted for a location. * * @ojb.class * @jdo.persistence-capable */ public class LocationBase implements Location { /** * @ojb.field primarykey=true */ Integer id; /** * @ojb.field length=40 */

Re: Persistence frameworks

2003-11-19 Thread Christian Pesch
Markus wrote: Hello, I've followed the descussion about hibernate and OJB. Yes - that's probably the biggest difference between OJB and Hibernate. Hibernate want KISS, OJB want ultimate flexibility ;) What does KISS mean? Keep it Small and Simple -- Christian

Re: General Questions about ODMG API

2003-11-07 Thread Christian Pesch
Sören Kress wrote: Or is there any opensource application that uses OJB and the ODMG api where I could learn anything. I've found the Beer4All Shopping Cart Demo at http://sourceforge.net/project/showfiles.php?group_id=49385release_id=168170 -- Christian

Re: Problem with byte[] to bytea mapping

2003-09-18 Thread Christian Pesch
Björn Voigt wrote: If I store the object to database and get it back, the length of the byte[] is bigger than the original length. Did you compare the original value and the written one? May be that gives a hint. - To

Re: Repost : NullPointerException in hashCode

2003-09-09 Thread Christian Pesch
Sebastien Cesbron wrote: Am I the only one that have this problem ? No :-) Can anybody tell me what I can do in this situation ? I removed hashCode() and waited for a wise suggestion, what to do :-) -- Christian - To

Re: OJB Console

2003-08-21 Thread Christian Pesch
Alexander Bibighaus wrote: You can demo the application here: http://www.scrashmeow.org/ojb/index.do Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and

Re: Problem with 1:m relation (ODMG, DList)

2003-08-18 Thread Christian Pesch
[EMAIL PROTECTED] wrote: Hi, I´ve must be really stupid but, after read tutorials, eMails, source code... I´ve not be able to run my 1:m code. Two classes A and B, with A --- B relation (1:m) public class A { private int id; private DList listB; private String name; public void A() {

Re: Problem with 1:m relation (ODMG, DList)

2003-08-18 Thread Christian Pesch
[EMAIL PROTECTED] wrote: Ok, I´ve just to rewrite all code with PB api, using Vector and RemovalAwareCollection and it works Try to use the ODMG instead of the PB API now. That worked for me, too. But I had problems using HashSet for collections (see previous mail Collection problem from

Re: Problems with xdoclet-ojb-module

2003-08-14 Thread Christian Pesch
Markus wrote: Hi, I always get this errormessabe from ant: repository-files: BUILD FAILED file:D:/JAVA_E~1/cvs_home/testojb/build.xml:165: taskdef class xdoclet.modules.ojb.OjbDocletTask cannot be found Did you use the xdoclet-1.2b3-dev.jar? -- Christian

Re: Problems with xdoclet-ojb-module

2003-08-12 Thread Christian Pesch
Thomas Dudziak wrote: This is usually the case when xdoclet finds no source code.# That's is. Thanks. Try running ant with the -v option to see some more output. There was no output indicating, that the fileset for the java source in my ant target was wrong: [EMAIL PROTECTED] project]$

Cannot switch to MySQL

2003-06-06 Thread Christian Pesch
= \+name+\; Where is that switch remove that test. prefix? -- Christian Pesch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]