Questions tagged [apache-cayenne]

Apache Cayenne is an open source persistence framework, providing object-relational mapping (ORM) and remoting services.

Cayenne seamlessly binds one or more database schemas directly to Java objects, managing

  • atomic commit and rollbacks
  • SQL generation
  • joins
  • sequences

and more. With Cayenne's Remote Object Persistence, those Java objects can even be persisted out to clients via Web Services.

Full details and documentation can be found at http://cayenne.apache.org

126 questions
14
votes
3 answers

Comparison between Hibernate and Cayenne

Someone please help me in choosing whether to use Hibernate or Cayenne? Which is more suitable to handle large databases?
Java Dummy
5
votes
3 answers

Is cayenne good choice for my requirement?

We are evaluating ORM solutions for my project that has tight coupling between business layer and datalayer(JDBC). I started doing a PoC with Cayenne. My requirement goes like this a) Already there exists database schema b) Schema is very granular…
Sudheer
  • 439
  • 1
  • 4
  • 9
5
votes
1 answer

What dependency scope for Derby JDBC drivers in intergration scope (cayenne)

I am trying to build my pom.xml so that I can automatically create my database schema when running 'mvn install'. I'm using the "maven-cayenne-plugin" to do this. This is plugin is being called (at the integration-test phase), as I can see the…
monojohnny
  • 5,531
  • 15
  • 56
  • 78
3
votes
1 answer

How to: Java object-mapping with PostgreSQL's json and jsonb data types

I tried to use Apache Cayenne to map to my PostgreSQL schema which has json and jsonb data types. The Apache Cayenne modeler does not have the data type and changed to "OTHER". When I execute the SQL to re-create the database (necessary for utmost…
ikevin8me
  • 4,023
  • 5
  • 38
  • 73
2
votes
1 answer

PostGIS Queries and Cayenne

I have just started evaluating the use of Cayenne for use with my PostGIS database. I found the CayenneModeler extremely easy to use in order to generate the code for my persistent classes. I thought that using the Expression.fromString("...")…
Christina
  • 21
  • 2
2
votes
1 answer

Binding a list of integers in an IN clause using Cayenne

I'm trying to bind a list of integers into an SQLTemplate IN clause like so: SELECT * FROM table1 WHERE id IN ( #bind($idList) ); I have a string of ids: idList = "1, 2, 3, 4"; I can't get the bind to work successfully, it returns no values when I…
RodeoClown
  • 12,312
  • 12
  • 49
  • 56
2
votes
1 answer

Where is the location of "velocity.log" for aTomcat deployment of a Vaadin/Apache Cayenne app?

I'm deploying an app which uses Vaadin and Apache Cayenne. It is causing a problem as I deploy it on Tomcat running as user "www". (If I run Tomcat as "root' there is no problem.) It complains that there is a no permission to access/write a file…
ikevin8me
  • 4,023
  • 5
  • 38
  • 73
2
votes
1 answer

issue with Cayenne Entity Manager

I'm trying to persist an object into the database using Cayenne Entity Manager. And unfortunately I get the following error: org.apache.cayenne.CayenneRuntimeException: [v.3.0 Apr 26 2010 09:59:17] Commit Exception Caused by:…
user224270
  • 527
  • 3
  • 7
  • 18
2
votes
1 answer

What is the status of JPA support in apache-cayenne?

I've found many JPA-related issues in cayenne's tracker with status 'closed'. But see nothing JPA-related in sources. I'm interested in the status of JPA compatibility in cayenne. What is done, what is on the way, what issues can I hit using that…
guai
  • 1,215
  • 1
  • 12
  • 27
2
votes
1 answer

Set database path in Cayenne

I'm planning on using Apache Cayenne in a project, but I struggle with getting it actually set up correctly. The Cayenne tutorial shows how to set a database location in the CayenneModeller. My problem is that I want to use Apache Derby at a path…
DarkDust
  • 85,893
  • 19
  • 180
  • 214
2
votes
1 answer

Apache Cayenne: Handling Postgresql enum types

I have a database type called "foo", defined like: CREATE TYPE foo AS ENUM('foo','bar','baz'); And when I generate classes for my tables via the Apache Cayenne Modeler, I get an error saying that that field is undefined. Come to find out, there is…
user1732480
2
votes
1 answer

Custom Constructor : Apache Cayenne 3.2M

I'm new to the API. It appears to me that you have to construct objects via the 'context' object like this: ServerRuntime cayenneRuntime = new ServerRuntime("cayenne-project.xml"); context = cayenneRuntime.newContext() ... MyEntity…
monojohnny
  • 5,531
  • 15
  • 56
  • 78
2
votes
1 answer

Cayenne 3.1 - setting datasource dynamically

I'm using Cayenne 3.1B2 at present as the persistence layer for some web services. There's a requirement for the services to expose one of several databases, all with the same schema, the database being determined when the service operation is…
2
votes
1 answer

Performing Bulk insert into a DB Table using Apache Cayenne

Is there any way to perform bulk insert into a DB table using Apache Cayenne. There are some scenarios for me where I need to perform bulk insert. I am not sure how can we do this in Cayenne. Any help in this regard is really appreciated.
Narendra
  • 5,195
  • 9
  • 34
  • 54
2
votes
1 answer

Cayenne: Updating database with manually created instances of classes generated by cayenne

I'm trying to use cayenne to interact with a PostgreSQL database. So far everything worked as expected but I'm now stuck with a problem I don't really understand (I'm new to cayenne). Say I have a table "books" with usual fields (book_id, title,…
ixM
  • 1,204
  • 12
  • 29
1
2 3
8 9