#919 - io.ebean package initial

This commit is contained in:
Rob Bygrave
2016-12-11 23:23:22 +13:00
parent 5821dc96b9
commit 971e2dc91b
2134 changed files with 10721 additions and 8652 deletions
+28 -28
View File
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<autotune xmlns="http://ebean-orm.github.io/xml/ns/autotune">
<origin key="DWeHD4.B0dP9Z.DKG8lq" beanType="com.avaje.tests.model.basic.Order" detail="select (status,shipDate) " original="select (status, orderDate, shipDate) ">
<callStack>com.avaje.tests.query.autotune.TestAutoTuneProfiling.findById(TestAutoTuneProfiling.java:62)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.useOrderDate(TestAutoTuneProfiling.java:66)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:52)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
</callStack>
<origin key="DWeHD4.B0dP9Z.DKG8lq" beanType="org.tests.model.basic.Order" detail="select (status,shipDate) " original="select (status, orderDate, shipDate) ">
<callStack>org.tests.query.autotune.TestAutoTuneProfiling.findById(TestAutoTuneProfiling.java:62)
org.tests.query.autotune.TestAutoTuneProfiling.useOrderDate(TestAutoTuneProfiling.java:66)
org.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:52)
org.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
</callStack>
</origin>
<origin key="DWeHD4.BZfmOY.Yd8Hf" beanType="com.avaje.tests.model.basic.Order" detail=" fetch customer (id) fetch details (orderQty,shipQty,unitPrice) fetch details.product (id,name) " original="select (id) fetch details ">
<callStack>com.avaje.tests.query.autotune.TestAutoTuneProfiling.useLotUntuned(TestAutoTuneProfiling.java:95)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:55)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
</callStack>
<origin key="DWeHD4.BZfmOY.Yd8Hf" beanType="org.tests.model.basic.Order" detail=" fetch customer (id) fetch details (orderQty,shipQty,unitPrice) fetch details.product (id,name) " original="select (id) fetch details ">
<callStack>org.tests.query.autotune.TestAutoTuneProfiling.useLotUntuned(TestAutoTuneProfiling.java:95)
org.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:55)
org.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
</callStack>
</origin>
<origin key="DWeHD4.l6b4M.BYWlSr" beanType="com.avaje.tests.model.basic.Order" detail=" fetch customer (name) " original="">
<callStack>com.avaje.tests.model.basic.Order._ebean_get_customer(Order.java:6)
com.avaje.tests.model.basic.Order.getCustomer(Order.java:228)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.useOrderDateCustomerName(TestAutoTuneProfiling.java:74)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:53)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
</callStack>
<origin key="DWeHD4.l6b4M.BYWlSr" beanType="org.tests.model.basic.Order" detail=" fetch customer (name) " original="">
<callStack>org.tests.model.basic.Order._ebean_get_customer(Order.java:6)
org.tests.model.basic.Order.getCustomer(Order.java:228)
org.tests.query.autotune.TestAutoTuneProfiling.useOrderDateCustomerName(TestAutoTuneProfiling.java:74)
org.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:53)
org.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:25)
</callStack>
</origin>
<origin key="DVf2Cn.StLsZ.BCru36" beanType="com.avaje.tests.model.basic.OrderDetail" detail=" fetch product (name) " original="">
<callStack>com.avaje.tests.model.basic.OrderDetail._ebean_get_product(OrderDetail.java:6)
com.avaje.tests.model.basic.OrderDetail.getProduct(OrderDetail.java:150)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.useLotUntuned(TestAutoTuneProfiling.java:96)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:55)
com.avaje.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:32)
</callStack>
<origin key="DVf2Cn.StLsZ.BCru36" beanType="org.tests.model.basic.OrderDetail" detail=" fetch product (name) " original="">
<callStack>org.tests.model.basic.OrderDetail._ebean_get_product(OrderDetail.java:6)
org.tests.model.basic.OrderDetail.getProduct(OrderDetail.java:150)
org.tests.query.autotune.TestAutoTuneProfiling.useLotUntuned(TestAutoTuneProfiling.java:96)
org.tests.query.autotune.TestAutoTuneProfiling.execute(TestAutoTuneProfiling.java:55)
org.tests.query.autotune.TestAutoTuneProfiling.test(TestAutoTuneProfiling.java:32)
</callStack>
</origin>
</autotune>
+3 -3
View File
@@ -9,7 +9,7 @@
#load.properties=${HOME}/config/myapp.ebean.properties
ebean.encryptKeyManager=com.avaje.tests.basic.encrypt.BasicEncyptKeyManager
ebean.encryptKeyManager=org.tests.basic.encrypt.BasicEncyptKeyManager
#ebean.autotune.querytuning=true
#ebean.autotune.profiling=true
@@ -23,7 +23,7 @@ datasource.default=h2
#ebean.h2.idType=SEQUENCE
ebean.currentUserProvider=com.avaje.ebean.MyCurrentUserProvider
ebean.currentUserProvider=io.ebean.MyCurrentUserProvider
#ebean.expressionNativeIlike=true
#ebean.jsonInclude=NON_NULL
@@ -61,7 +61,7 @@ datasource.h2.maxConnections=25
#datasource.h2.isolationlevel=read_committed
#datasource.h2.capturestacktrace=true
#datasource.h2.maxStackTraceSize=20
datasource.h2.poolListener=com.avaje.tests.basic.MyTestDataSourcePoolListener
datasource.h2.poolListener=org.tests.basic.MyTestDataSourcePoolListener
#datasource.h2.customProperties=IGNORECASE=TRUE;MODE=Oracle;
datasource.h2autocommit.autoCommit=true
+3 -3
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ebean xmlns="http://ebean-orm.github.io/xml/ns/ebean">
<entity class="com.avaje.tests.model.basic.OrderAggregate">
<entity class="org.tests.model.basic.OrderAggregate">
<raw-sql name="default">
<column-mapping column="order_id" property="order.id"/>
<query>
@@ -31,7 +31,7 @@
</entity>
<entity class="com.avaje.tests.model.basic.Order">
<entity class="org.tests.model.basic.Order">
<raw-sql name="myRawTest">
<alias-mapping alias="c" property="customer"/>
<alias-mapping alias="a" property="customer.billingAddress"/>
@@ -46,7 +46,7 @@
</raw-sql>
</entity>
<entity class="com.avaje.tests.model.basic.Customer">
<entity class="org.tests.model.basic.Customer">
<named-query name="withContactsById">
<query>
select (name, version)
+2 -2
View File
@@ -73,10 +73,10 @@
</root>
<logger name="com.avaje.ebean.dbmigration.DdlGenerator" level="TRACE"/>
<logger name="io.ebean.dbmigration.DdlGenerator" level="TRACE"/>
<logger name="org.avaje.dbmigration.ddl" level="TRACE"/>
<logger name="com.avaje.tests" level="INFO"/>
<logger name="org.tests" level="INFO"/>
<logger name="com.avaje.ebean" level="INFO"/>
<logger name="org.avaje.ebean" level="INFO"/>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ebean xmlns="http://ebean-orm.github.io/xml/ns/ebean">
<entity class="com.avaje.tests.model.basic.OrderAggregate">
<entity class="org.tests.model.basic.OrderAggregate">
<raw-sql name="default">
<column-mapping column="order_id" property="order.id"/>
<query>