After having correctly converted cayenne.xml => Cayenne 3.1
it seems like I can stay blissfully ignorant of inject for a while
still! :-)
--
Øyvind Harboe
Can Zylin Consulting help on your project?
US toll free 1-866-980-3434 / International +47 51 87 40 27
http://www.zylin.com/zy1000.html
ARM
After messing about a bit, I discovered that I was running
the wrong versions of Cayenne Modeler.
What I did was:
- Use wrong version of Cayenne Modeler => no error messages
and no conversion of cayenne.xml => confusion about where
cayenne-domain.xml came from.
- Use correct version of Cayenne Mo
It seems like injection is a prerequisite skill to be able to use Cayenne 3.1.
So far I've been able to live in blissful ignorance about injection.
It would be helpful to have an "Injenction for Cayenne 3.1 dummies"
section in the manual as a precursor...
--
Øyvind Harboe
Can Zylin Consulting
How do I load my cayenne.xml in 3.1?
Can I convert a cayenne.xml from 3.0 to 3.1 format somehow?
Is cayenne.xml != cayenne-UntitledDomain.xml?
Where does cayenne-UntitledDomain.xml come from?
When I tried using the instructions I on the wikipages, I got an error
message about the xml format not
I'm working on upgrading from a development build
of 3.0 to 3.1.
Here is a list of things that I have done so far:
- Tip: upgrade to 3.0.x to 3.0.1 and fix deprecated warnings
and test.
- new Ordering() has changed constructors. Switched to
non-deprecated versions.
- The LifeCycle interface has n
Actually this is good result - you are getting there. I think you also need to
add attributes for the columns in your table to DbEntity and ObjEntity.
Andrus
On Jan 21, 2011, at 5:09 PM, André Rothe wrote:
> Hm, it doesn't work. I can perform a SQL query, it returns the correct number
> of rec
Hm, it doesn't work. I can perform a SQL query, it returns the correct
number of records, but the properties are NULL.
SelectQuery q = new SelectQuery("Projects");
List projectsTest = this.context.get("test").performQuery(q);
for (Object o : projectsTest) {
DataObject dObj = (DataObject) o
On Jan 21, 2011, at 2:53 PM, André Rothe wrote:
> Should I set the name explicitly to "org.apache.cayenne.CayenneDataObject"
> (or subclasses)?
Setting org.apache.cayenne.CayenneDataObject is optional (this is the default).
If you want to use your own subclass, definitely call
objEntity.setCl
Hi Andrus,
when it comes to the generic persistence data objects, how I have to
define it?
DataMap map = new DataMap(mapName);
DbEntity entity = new DbEntity("projects");
DbAttribute attr = new DbAttribute("ora_uname");
attr.setMaxLength(20);
attr.setM
Cayenne uses JDBC API, so it uses whatever the driver gives it.
java.sql.DatabaseMetaData.getProcedures(String catalog, String schemaPattern,
String procedureNamePattern)
(IIRC 'catalog' parameter is ignored by the Modeler, schema and procedure name
are user choices).
Andrus
On Jan 21, 2011
Hi!
In Reenginer, how does the modeller find the present procedures on the DB?
I have run it, and it found procedures, but when I check on the DB with:
select object_name
from all_objects
where object_type = 'PROCEDURE' and object_name like 'WHAT_MODELLER_FOUND%';
I don't find them.
Also w
Hi André,
Yes, if you wish you can create the entire Cayenne stack via API, loading parts
of it from XML files, etc.
* To load DataMap from XML, use MapLoader:
http://cayenne.apache.org/doc30/api/org/apache/cayenne/map/MapLoader.html
* To create a DataContext, use DataDomain.createDataContext
Hello,
I try to write a short test program, which can use multiple data
sources dynamically with Cayenne. At the moment I have finished the
replacement for the driver.xml and cayenne.xml (I think):
// init a connection
DataSourceInfo properties = new DataSo
13 matches
Mail list logo