cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Meyer - KMZ" <ke...@kmz.co.za>
Subject Re: Is it possible/easy to integrate cayenne with other frameworks?
Date Mon, 12 Dec 2011 16:52:05 GMT
Ok, thanks, I call 
            objAttribute.setDbAttributePath(id);
and I am now back to my previous problem, where
        DataNode node = 
parent.getDomain().lookupDataNode(entity.getDataMap());
has node == null in DataDomainInsertBucket#createPermIds.

Any hints?

On 12 Dec 2011 at 11:13, Mike Kienenberger wrote:

> You may not need the prefix, but you at least need this much:
> 
>           //  dot-separated path that starts in the root DbEntity
> that maps to this attribute's ObjEntity and spans zero or more
> relationships, always ending in a DbAttribute name.
>           objAttribute.setDbAttributePath(id);
> 
> On Mon, Dec 12, 2011 at 11:10 AM, Kevin Meyer - KMZ <kevin@kmz.co.za> wrote:
> > Sorry, you guys are confusing me.
> >
> > I have a datamap (called "isis_map"), to which I have added a DbEntity
> > (named after my class, "simpleclass") and a ObjEntity (with same
> > name).
> >
> > The "id" I refer to is the name of a property of my class (called
> > "number"). The class has methods setNumber and getNumber.
> >
> > That's the id ("number") that I assigned to DbAttribute and
> > ObjAttribute.
> >
> > What is the prefix you refer to?
> >
> > regards,
> > Kevin
> >
> > On 12 Dec 2011 at 9:20, John Huss wrote:
> >
> >> Yes, you need to link the Obj* things to the Db* things by name, both the
> >> entities and the attributes.
> >>
> >> On Mon, Dec 12, 2011 at 9:03 AM, Mike Kienenberger <mkienenb@gmail.com>wrote:
> >>
> >> > I can't remember the exact details, but you might need (prefix + "." +
> >> > id) instead of (id)
> >> >
> >> > On Mon, Dec 12, 2011 at 2:50 AM, Kevin Meyer - KMZ <kevin@kmz.co.za>
> >> > wrote:
> >> > >            DbAttribute dbAttribute = new DbAttribute(id,
> >> > java.sql.Types.INTEGER, dbEntity);
> >> > >            dbEntity.addAttribute(dbAttribute);
> >> >
> >> > +             //  dot-separated path that starts in the root DbEntity
> >> > that maps to this attribute's ObjEntity and spans zero or more
> >> > relationships, always ending in a DbAttribute name.
> >> > +             objAttribute.setDbAttributePath(id);
> >> >
> >> > >
> >> > >            ObjAttribute objAttribute = new ObjAttribute(id,
type,
> >> > objEntity);
> >> >
> >>
> >
> >
> > --
> > Kevin Meyer, PhD, Pr.Sci.Nat
> > KMZ             P.O. Box 9822, Sharon Park, South Africa.
> > Tel: +27 11 363 2001   Cell: +27 83 346 3045
> >
> >


--
Kevin Meyer, PhD, Pr.Sci.Nat
KMZ		P.O. Box 9822, Sharon Park, South Africa.
Tel: +27 11 363 2001	Cell: +27 83 346 3045



Mime
View raw message