mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Merge pull request #3376 from ebean-orm/feature/querybean-txn
Deprecate Query bean constructor that takes transaction - migrate to query.usingTransaction() instead
This commit is contained in:
+2
-1
@@ -61,8 +61,9 @@ class KotlinLangAdapter implements LangAdapter {
|
||||
}
|
||||
|
||||
writer.append(" /**").eol();
|
||||
writer.append(" * Construct with a given Transaction.", name).eol();
|
||||
writer.append(" * @deprecated migrate to query.usingTransaction()", name).eol();
|
||||
writer.append(" */").eol();
|
||||
writer.append(" @Deprecated").eol();
|
||||
if (dbName == null) {
|
||||
writer.append(" constructor(transaction: io.ebean.Transaction) : super(%s::class.java, transaction)", fullName).eol().eol();
|
||||
} else {
|
||||
|
||||
+2
-1
@@ -160,7 +160,8 @@ class SimpleQueryBeanWriter {
|
||||
writer.append(" }").eol();
|
||||
writer.eol();
|
||||
|
||||
writer.append(" /** Construct with a given transaction */").eol();
|
||||
writer.append(" /** @deprecated migrate to query.usingTransaction() */").eol();
|
||||
writer.append(" @Deprecated(forRemoval = true)").eol();
|
||||
writer.append(" public Q%s(io.ebean.Transaction transaction) {", shortName).eol();
|
||||
if (dbName == null) {
|
||||
writer.append(" super(%s.class, transaction);", beanFullName).eol();
|
||||
|
||||
Reference in New Issue
Block a user