Okay Armin,

will deal now with src-dist

but, why am i not able to use binary?
only for "enable" p6spy  ?

or in generall better to use SRC?

for Struts e.g. i allways use the binary-version

greetings,
 --- Armin Waibel <[EMAIL PROTECTED]> schrieb: > Hi,
> 
> Ralf Bode wrote:
> 
> > Hi Armin,
> > 
> > i used the bin-version.
> > how am i now able to enable p6spy?
> > in OJB.properties i found no key for it!
> > 
> 
> you have to use the source version.
> 
> > greetings,
> > 
> > is it possible, that this is a bug?
> > (not setting the foreign-key?)
> 
> hmm, I don't think so. There was a bug when equals
> and hashcode method 
> of the persistence capable objects are overridden
> (fixed in CVS). But 
> this doesn't bother your test. Nevertheless you can
> try the CVS head.
> 
> regards,
> Armin
> 
> > 
> >  --- Armin Waibel <[EMAIL PROTECTED]> schrieb: >
> Hi
> > Ralf,
> > 
> >>hmm, your test is now similar to the tests in OJB
> >>test-suite. These 
> >>tests pass without problems (against hsql, sapDB,
> >>mySQL,...).
> >>
> >>How does the generated sql look like? You can use
> >>p6spy to log all 
> >>generated SQL. If you run your test within
> OJB-suite
> >>you only need to 
> >>enable p6spy in build.properties file.
> >>
> >>regards,
> >>Armin
> >>
> >>Ralf Bode wrote:
> >>
> >>
> >>>hallo armin,
> >>>it is the same behavor!
> >>>field "autoid" in table "kunde"
> >>>is also "null" ...
> >>>
> >>>mmm (1.0rc5 - downloaded yesterday morning)
> >>>libs in classpath:
> >>>commons-collecton
> >>>commons-dbcp
> >>>commons-lang
> >>>commons-pool
> >>>db-ojb10rc5
> >>>
> >>>(and mysql...) :-)
> >>>
> >>>i did:
> >>>
> >>>Auto auto = new Auto();
> >>>auto.setFarbe("blau");
> >>>
> >>>Kunde kunde = new Kunde();
> >>>kunde.setNachname("Bode");
> >>>kunde.setVorname("Ralle");
> >>>kunde.setAuto(auto);
> >>>   
> >>>//OJB aktivieren!
> >>>broker.beginTransaction();
> >>>broker.store(kunde);
> >>>broker.commitTransaction();
> >>>
> >>>
> >>>
> >>>--- Ralf Bode <[EMAIL PROTECTED]> schrieb: > Hi
> >>>Armin, Brain and the rest :-)
> >>>
> >>>
> >>>>hier is my code (a simple test-example)
> >>>>CAR:
> >>>>package de.ralle;
> >>>>
> >>>>import java.io.Serializable;
> >>>>
> >>>>//the CAR
> >>>>public class Auto implements Serializable{
> >>>>
> >>>>  private String farbe;
> >>>>  public Auto() {
> >>>>  }
> >>>>
> >>>>  public String getFarbe() {
> >>>>          return farbe;
> >>>>  }
> >>>>
> >>>>  public void setFarbe(String string) {
> >>>>          farbe = string;
> >>>>  }
> >>>>
> >>>>}
> >>>>
> >>>>CUSTOMER:
> >>>>package de.ralle;
> >>>>
> >>>>import java.io.Serializable;
> >>>>
> >>>>//my customer!
> >>>>public class Kunde implements Serializable{
> >>>>  
> >>>>
> >>>>  private String vorname;
> >>>>  private String nachname;
> >>>>
> >>>>  private Auto auto;
> >>>>
> >>>>
> >>>>  public Kunde(){ 
> >>>>  }
> >>>>
> >>>>  public Auto getAuto() {
> >>>>          return auto;
> >>>>  }
> >>>>
> >>>>  public String getNachname() {
> >>>>          return nachname;
> >>>>  }
> >>>>
> >>>>  public String getVorname() {
> >>>>          return vorname;
> >>>>  }
> >>>>
> >>>>  public void setAuto(Auto auto) {
> >>>>          this.auto = auto;
> >>>>  }
> >>>>
> >>>>  public void setNachname(String string) {
> >>>>          nachname = string;
> >>>>  }
> >>>>
> >>>>  public void setVorname(String string) {
> >>>>          vorname = string;
> >>>>  }
> >>>>
> >>>>}
> >>>>
> >>>>and XML:
> >>>><class-descriptor 
> >>>>  class="de.ralle.Kunde" 
> >>>>  table="Kunde" >
> >>>>
> >>>>  <field-descriptor
> >>>>          id="1"
> >>>>          name="id"
> >>>>          column="id"
> >>>>          jdbc-type="INTEGER"
> >>>>          primarykey="true"
> >>>>          access="anonymous"/>
> >>>>  <field-descriptor
> >>>>          id="2"
> >>>>          name="vorname"
> >>>>          column="vorname"
> >>>>          jdbc-type="VARCHAR"/>
> >>>>  <field-descriptor
> >>>>          id="3"
> >>>>          name="nachname"
> >>>>          column="nachname"
> >>>>          jdbc-type="VARCHAR"/>
> >>>>  <field-descriptor
> >>>>          id="4" 
> >>>>          name="autoId" 
> >>>>          column="autoid" 
> >>>>          jdbc-type="INTEGER"
> >>>>          access="anonymous"/>
> >>>>
> >>>>  <reference-descriptor 
> >>>>          name="auto" 
> >>>>          class-ref="de.ralle.Auto"
> >>>>          auto-retrieve="true"
> >>>>          auto-update="true"
> >>>>          auto-delete="true">
> >>>>          <foreignkey field-ref="autoId"/>
> >>>>  </reference-descriptor>
> >>>></class-descriptor>
> >>>><class-descriptor 
> >>>>  class="de.ralle.Auto" 
> >>>>  table="auto">
> >>>>  <field-descriptor 
> >>>>          id="1" 
> >>>>          name="id" 
> >>>>          column="id" 
> >>>>          jdbc-type="INTEGER" 
> >>>>          primarykey="true"
> 
=== message truncated === 

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Mit Yahoo! Suche finden Sie alles: http://suche.yahoo.de

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

Reply via email to