Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static <T> SQLSelect<T> query(Class<T> type, String sql) {

/**
* Creates a query that selects scalar values and uses default routing.
* @deprecated since 4.2. Use {@link #scalarQuery(String, Class<T>)} method.
* @deprecated since 4.2. Use {@link #scalarQuery(String, Class)} method.
*/
@Deprecated
public static <T> SQLSelect<T> scalarQuery(Class<T> type, String sql) {
Expand All @@ -105,7 +105,7 @@ public static <T> SQLSelect<T> scalarQuery(Class<T> type, String sql) {
/**
* Creates a query that selects scalar values and uses routing based on the
* provided DataMap name.
* @deprecated since 4.2. Use {@link #scalarQuery(String, String, Class<T>)} method.
* @deprecated since 4.2. Use {@link #scalarQuery(String, String, Class)} method.
*/
@Deprecated
public static <T> SQLSelect<T> scalarQuery(Class<T> type, String dataMapName, String sql) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Cayenne supports three PK generation strategies:
1. *Cayenne Generated*.
This is default strategy. Cayenne will use special table `AUTO_PK_SUPPORT` for managing primary keys.

1. *Database Generated*.
2. *Database Generated*.
Cayenne will delegate PK generation to database (e.g. auto increment fields on MySQL or `serial` type on PostgreSQL)

1. *Custom Sequence*. In this case Cayenne will use provided sequence to generate primary keys.
3. *Custom Sequence*. In this case Cayenne will use provided sequence to generate primary keys.

Strategy should be set per each `DbEntity` independently.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include::../var.adoc[]

Creates services for the server side of an <<rop,ROP>> application.

===== Maven
==== Maven

[source, XML,subs="verbatim,attributes"]
----
Expand All @@ -30,7 +30,7 @@ Creates services for the server side of an <<rop,ROP>> application.
</dependency>
----

===== Gradle
==== Gradle

[source, Groovy,subs="verbatim,attributes"]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ cgen {
client = false
mode = 'all'
overwrite = true
createPropertiesNames = true
createPropertyNames = true
}
----

Expand All @@ -82,9 +82,9 @@ example of configuration for cdbimport task:
----
cdbimport {
// map can be skipped if it is defined in cayenne.defaultDataMap
map 'datamap.map.xml'
map 'src/main/resources/datamap.map.xml'
// optional project file, will be created if missing
cayenneProject 'cayenne-project.xml'
cayenneProject 'src/main/resources/cayenne-project.xml'

dataSource {
driver 'com.mysql.cj.jdbc.Driver'
Expand All @@ -93,7 +93,7 @@ cdbimport {
password ''
}

dbImport
dbImport {
// additional settings
usePrimitives false
defaultPackage 'org.apache.cayenne.test'
Expand Down