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

132 questions
0
votes
1 answer

Cayenne: retrieving positions of tokens after parsing an expression

I am parsing an expression with Cayenne, so I have the tokens (org.apache.cayenne.exp.parser.Token) resulting from the parsing. I would like to know at what position in the parsed expression the token was found. My problem is that I am not able to…
SantiBailors
  • 1,596
  • 3
  • 21
  • 44
0
votes
2 answers

Cayenne, Postgres: primary key generation

I'm using Cayenne 3.2M1 and Postgres 9.0.1 to create a database. Right now I'm having problems with the primary key generation of Cayenne since I have tables with more than one primary key and as far as I've read Cayenne cant generate more that one…
Vanessa
  • 51
  • 7
0
votes
1 answer

Apache Cayenne - I cannot find code defining the constants for Token.kind field

I'm using Cayenne to parse SQL conditions, through org.apache.cayenne.exp.parser.ExpressionParser, which produces a series of org.apache.cayenne.exp.parser.Tokens, and I want to determine the type of each Token (like identifier, equal sign, number,…
SantiBailors
  • 1,596
  • 3
  • 21
  • 44
0
votes
1 answer

Cayenne SQLTemplate returning incorrect result

I'm pretty stump on this issue. Please help. sql = "SELECT * FROM scheduler_assignment a WHERE a.start < #bind($end)"; SQLTemplate query = new SQLTemplate(Assignment.class, sql); query.setFetchingDataRows(true); Map params = new…
Tuan
  • 1,476
  • 13
  • 23
0
votes
1 answer

Cayenne executes INSERT query on commitChanges()

I have the following code: List assignments = objectContext.performQuery(assignmentQuery); objectContext.commitChanges(); objectContext.deleteObjects(assignments); objectContext.commitChanges(); I do the first commitChanges() to commit…
Tuan
  • 1,476
  • 13
  • 23
0
votes
1 answer

And join Query issue in apache-cayenne

I am having issues writing an expression query in apache cayenne to retrieve the records from the database. My requirement is to retrieve the orders from a table which is created by a particular UserDn, where Order Status is not complete. It is not…
0
votes
1 answer

How to add/modify database records using Cayenne API

I am seeking to use Apache Cayenne to implement a database, and would like to know how to use Cayenne's API to perform an "add" operation. I have been reading over the query document for two days. It gives good information on how to get a list of…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
1 answer

Preventing Cayenne from upading some column values

I don't want to update some column values in cayenne but I want to insert them . Once I insert the row I will never want to update some column values. How can I do this in cayenne. If it is hibernate in mapping file we can specify something
Narendra
  • 5,635
  • 10
  • 42
  • 54
0
votes
2 answers

struts2 creating session objects, why and when?

I want to create session only when a user is authenticated successfully in my web application. But for some reason struts2 creating session objects even though we just accessing login page. I went thorough some documentation of struts2 and found…
Narendra
  • 5,635
  • 10
  • 42
  • 54
0
votes
2 answers

NoSuchFieldException in Apache Cayenne when using Reversed Engeneered Objects

i have the following Problem when querying a select from a remote client to apache cayenne server. For testing purpose i generated only one independent class from one table. I generated the cleint classes (the super- and sub-class) and the Server…
cpasemann
  • 103
  • 6
0
votes
1 answer

Eclipse - trouble with Import

I have project that I am trying to debug, and I am sure its using Cayenne 3.2, I have downloaded the cayenne 3.2 source, now if I try to import the cayenne source as a project after selecting Import -> File System -> and then select the root Cayenne…
Hell Boy
  • 899
  • 5
  • 12
  • 22
-2
votes
2 answers

having error with connection between java and mysql with cayenne module

Jul 03, 2013 9:19:08 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader load INFO: Loading XML configuration resource from file:/C:/Users/Shadi/Documents/spring%20tool%20projects/myBookstore/target/classes/cayenne-project.xml Jul 03,…
1 2 3
8
9