diff --git a/src/main/java/com/avaje/ebean/annotation/Aggregation.java b/src/main/java/com/avaje/ebean/annotation/Aggregation.java index 7fb6589cc..aeb4147c1 100644 --- a/src/main/java/com/avaje/ebean/annotation/Aggregation.java +++ b/src/main/java/com/avaje/ebean/annotation/Aggregation.java @@ -13,7 +13,7 @@ import java.lang.annotation.Target; * included in a query. To populate the aggregation property it must be * explicitly included in the select(). *

- * + *

*

Example:

*
{@code
  *
@@ -24,7 +24,7 @@ import java.lang.annotation.Target;
  * Long totalAmount;
  *
  * }
- * + *

*

Example query

*
{@code
  *
diff --git a/src/main/java/com/avaje/ebean/annotation/Cache.java b/src/main/java/com/avaje/ebean/annotation/Cache.java
index ea1a50f2a..59be62ef3 100644
--- a/src/main/java/com/avaje/ebean/annotation/Cache.java
+++ b/src/main/java/com/avaje/ebean/annotation/Cache.java
@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
 /**
  * Specify the default cache use specific entity type.
  */
-@Target({ ElementType.TYPE })
+@Target({ElementType.TYPE})
 @Retention(RetentionPolicy.RUNTIME)
 public @interface Cache {
 
diff --git a/src/main/java/com/avaje/ebean/annotation/CacheBeanTuning.java b/src/main/java/com/avaje/ebean/annotation/CacheBeanTuning.java
index 546f50d5f..b1a299f51 100644
--- a/src/main/java/com/avaje/ebean/annotation/CacheBeanTuning.java
+++ b/src/main/java/com/avaje/ebean/annotation/CacheBeanTuning.java
@@ -12,7 +12,7 @@ import java.lang.annotation.Target;
  * ElasticSearch, Hazelcast, Ignite etc.
  * 

*/ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface CacheBeanTuning { diff --git a/src/main/java/com/avaje/ebean/annotation/CacheQueryTuning.java b/src/main/java/com/avaje/ebean/annotation/CacheQueryTuning.java index 2fd1464e5..bf43ef9fc 100644 --- a/src/main/java/com/avaje/ebean/annotation/CacheQueryTuning.java +++ b/src/main/java/com/avaje/ebean/annotation/CacheQueryTuning.java @@ -11,7 +11,7 @@ import java.lang.annotation.Target; * If this is not specified then the system default settings are used. *

*/ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface CacheQueryTuning { diff --git a/src/main/java/com/avaje/ebean/annotation/CreatedTimestamp.java b/src/main/java/com/avaje/ebean/annotation/CreatedTimestamp.java index 49b5bc6a1..d53e62baf 100644 --- a/src/main/java/com/avaje/ebean/annotation/CreatedTimestamp.java +++ b/src/main/java/com/avaje/ebean/annotation/CreatedTimestamp.java @@ -22,7 +22,7 @@ import java.lang.annotation.Target; * timestamp value after the insert has occurred. You need to fetch the entity * back to get the inserted timestamp if you want to used it. *

- * + *

*

Example:

*
{@code
  *
@@ -31,7 +31,7 @@ import java.lang.annotation.Target;
  *
  * }
*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface CreatedTimestamp { diff --git a/src/main/java/com/avaje/ebean/annotation/DbArray.java b/src/main/java/com/avaje/ebean/annotation/DbArray.java index 5c81651d5..8d3fd5d24 100644 --- a/src/main/java/com/avaje/ebean/annotation/DbArray.java +++ b/src/main/java/com/avaje/ebean/annotation/DbArray.java @@ -11,7 +11,7 @@ import java.lang.annotation.Target; * If the target database does not support ARRAY type (so not Postgres) * then the collection will be stored in JSON format into a VARCHAR column. *

- * + *

*

Example:

*
{@code
  *
diff --git a/src/main/java/com/avaje/ebean/annotation/DbHstore.java b/src/main/java/com/avaje/ebean/annotation/DbHstore.java
index 9ffd29760..87ede7183 100644
--- a/src/main/java/com/avaje/ebean/annotation/DbHstore.java
+++ b/src/main/java/com/avaje/ebean/annotation/DbHstore.java
@@ -10,7 +10,7 @@ import java.lang.annotation.Target;
  * 

* The Map property should have keys and values of type String. *

- * + *

*

Example:

*
{@code
  *
@@ -27,4 +27,4 @@ public @interface DbHstore {
    * For VARCHAR storage specify the column length (defaults to 1000).
    */
   int length() default 0;
-}
\ No newline at end of file
+}
diff --git a/src/main/java/com/avaje/ebean/annotation/DbJson.java b/src/main/java/com/avaje/ebean/annotation/DbJson.java
index d5bf2b059..07cf1564e 100644
--- a/src/main/java/com/avaje/ebean/annotation/DbJson.java
+++ b/src/main/java/com/avaje/ebean/annotation/DbJson.java
@@ -18,7 +18,7 @@ import java.lang.annotation.Target;
  * Map content;
  *
  * }
- * + *

*

Example with JSONB storage

*
{@code
  *
@@ -41,4 +41,4 @@ public @interface DbJson {
    * For VARCHAR storage specify the column length (defaults to 3000).
    */
   int length() default 0;
-}
\ No newline at end of file
+}
diff --git a/src/main/java/com/avaje/ebean/annotation/DbJsonB.java b/src/main/java/com/avaje/ebean/annotation/DbJsonB.java
index ebfaf9270..418294006 100644
--- a/src/main/java/com/avaje/ebean/annotation/DbJsonB.java
+++ b/src/main/java/com/avaje/ebean/annotation/DbJsonB.java
@@ -11,9 +11,9 @@ import java.lang.annotation.Target;
  * The content will be stored on Postgres using it's JSONB type and as Clob for other databases.
  * 

*

- * This is equivalent to using @DbJson(storage = DbJsonType.JSONB) + * This is equivalent to using @DbJson(storage = DbJsonType.JSONB) *

- * + *

*

Example:

*
{@code
  *
@@ -22,7 +22,7 @@ import java.lang.annotation.Target;
  * Map content;
  *
  * }
- * + *

*

Equivalent to:

*
{@code
  *
@@ -40,4 +40,4 @@ public @interface DbJsonB {
    * For VARCHAR storage specify the column length.
    */
   int length() default 0;
-}
\ No newline at end of file
+}
diff --git a/src/main/java/com/avaje/ebean/annotation/DocEmbedded.java b/src/main/java/com/avaje/ebean/annotation/DocEmbedded.java
index f0e258287..5cfd92ce7 100644
--- a/src/main/java/com/avaje/ebean/annotation/DocEmbedded.java
+++ b/src/main/java/com/avaje/ebean/annotation/DocEmbedded.java
@@ -7,7 +7,6 @@ import java.lang.annotation.Target;
 
 /**
  * Specify the property is included in the parent document store index.
- *
  * 
{@code
  *
  *
@@ -25,7 +24,7 @@ import java.lang.annotation.Target;
  *
  * }
*/ -@Target({ ElementType.FIELD }) +@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface DocEmbedded { diff --git a/src/main/java/com/avaje/ebean/annotation/DocMapping.java b/src/main/java/com/avaje/ebean/annotation/DocMapping.java index b95a1ec74..10c1fc857 100644 --- a/src/main/java/com/avaje/ebean/annotation/DocMapping.java +++ b/src/main/java/com/avaje/ebean/annotation/DocMapping.java @@ -8,7 +8,7 @@ import java.lang.annotation.Target; /** * Specify the entity type maps to a document store (like ElasticSearch). */ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface DocMapping { diff --git a/src/main/java/com/avaje/ebean/annotation/DocProperty.java b/src/main/java/com/avaje/ebean/annotation/DocProperty.java index 4cc5ad262..ee4aaa21b 100644 --- a/src/main/java/com/avaje/ebean/annotation/DocProperty.java +++ b/src/main/java/com/avaje/ebean/annotation/DocProperty.java @@ -8,7 +8,7 @@ import java.lang.annotation.Target; /** * Specify the entity type maps to a document store (like ElasticSearch). */ -@Target({ ElementType.FIELD }) +@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface DocProperty { diff --git a/src/main/java/com/avaje/ebean/annotation/DocSortable.java b/src/main/java/com/avaje/ebean/annotation/DocSortable.java index f0b87b450..ba554c1c5 100644 --- a/src/main/java/com/avaje/ebean/annotation/DocSortable.java +++ b/src/main/java/com/avaje/ebean/annotation/DocSortable.java @@ -13,7 +13,7 @@ import java.lang.annotation.Target; * For example, customer name and product name are good candidates for marking with @DocSortable. *

*/ -@Target({ ElementType.FIELD }) +@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface DocSortable { diff --git a/src/main/java/com/avaje/ebean/annotation/DocStore.java b/src/main/java/com/avaje/ebean/annotation/DocStore.java index be116b799..808c35977 100644 --- a/src/main/java/com/avaje/ebean/annotation/DocStore.java +++ b/src/main/java/com/avaje/ebean/annotation/DocStore.java @@ -8,7 +8,7 @@ import java.lang.annotation.Target; /** * Specify the entity type maps to a document store (like ElasticSearch). */ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface DocStore { @@ -73,7 +73,6 @@ public @interface DocStore { * Note that typically DocStoreEmbedded is used on @ManyToOne and @OneToMany * properties to indicate what part of the nested document should be included. *

- * *

Example:

*
{@code
    *
diff --git a/src/main/java/com/avaje/ebean/annotation/DocStoreMode.java b/src/main/java/com/avaje/ebean/annotation/DocStoreMode.java
index b4805ee75..03297dbc6 100644
--- a/src/main/java/com/avaje/ebean/annotation/DocStoreMode.java
+++ b/src/main/java/com/avaje/ebean/annotation/DocStoreMode.java
@@ -23,9 +23,9 @@ public enum DocStoreMode {
   /**
    * Ignore the event and not update the document store.
    * 

- * This can be used on a index or for a transaction where you want to have more - * manual programmatic control over the updating of the document store. Say you want to - * IGNORE on a particular transaction and instead manually queue a bulk update. + * This can be used on a index or for a transaction where you want to have more + * manual programmatic control over the updating of the document store. Say you want to + * IGNORE on a particular transaction and instead manually queue a bulk update. *

*/ IGNORE, diff --git a/src/main/java/com/avaje/ebean/annotation/EmbeddedColumns.java b/src/main/java/com/avaje/ebean/annotation/EmbeddedColumns.java index 5a68edbac..b63ecfebf 100644 --- a/src/main/java/com/avaje/ebean/annotation/EmbeddedColumns.java +++ b/src/main/java/com/avaje/ebean/annotation/EmbeddedColumns.java @@ -12,7 +12,7 @@ import java.lang.annotation.Target; * standard JPA. *

*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface EmbeddedColumns { diff --git a/src/main/java/com/avaje/ebean/annotation/Encrypted.java b/src/main/java/com/avaje/ebean/annotation/Encrypted.java index a803ddc0a..25c1697c0 100644 --- a/src/main/java/com/avaje/ebean/annotation/Encrypted.java +++ b/src/main/java/com/avaje/ebean/annotation/Encrypted.java @@ -8,7 +8,7 @@ import java.lang.annotation.Target; /** * Specify that the property is stored in encrypted form. */ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface Encrypted { diff --git a/src/main/java/com/avaje/ebean/annotation/EnumValue.java b/src/main/java/com/avaje/ebean/annotation/EnumValue.java index 8dce61fdc..d34294327 100644 --- a/src/main/java/com/avaje/ebean/annotation/EnumValue.java +++ b/src/main/java/com/avaje/ebean/annotation/EnumValue.java @@ -7,21 +7,20 @@ import java.lang.annotation.Target; /** * Enables you to specify a value to use to persist for an enum value. - * *
{@code
  *
  * public enum Status {
  *
  *   @EnumValue("N")
  *   NEW,
- * 
+ *
  *   @EnumValue("A")
  *   ACTIVE,
- * 
+ *
  *   @EnumValue("I")
  *   INACTIVE,
  * }
- * 
+ *
  * }
*

* This is an alternative to using the JPA standard approach or Ebean's @@ -33,7 +32,7 @@ import java.lang.annotation.Target; * and fetched as strings. *

*/ -@Target({ ElementType.FIELD }) +@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface EnumValue { diff --git a/src/main/java/com/avaje/ebean/annotation/Formula.java b/src/main/java/com/avaje/ebean/annotation/Formula.java index 647edcfd1..35b24c60e 100644 --- a/src/main/java/com/avaje/ebean/annotation/Formula.java +++ b/src/main/java/com/avaje/ebean/annotation/Formula.java @@ -1,12 +1,12 @@ package com.avaje.ebean.annotation; +import com.avaje.ebean.Query; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.avaje.ebean.Query; - /** * Assign to a property to be based on a SQL formula. *

@@ -24,28 +24,27 @@ import com.avaje.ebean.Query; * You may want to do this if the Formula is relatively expensive and only want * it included in the query when you explicitly state it. *

- * - *
- * // On the Order "master" bean
+ * 

+ *

{@code
+ * // On the Order "master" bean
  * // ... a formula using the Order details
  * // ... sum(order_qty*unit_price)
- * @Transient
- * @Formula(select = "_b${ta}.total_amount", join = "join (select order_id, sum(order_qty*unit_price) as total_amount from o_order_detail group by order_id) as _b${ta} on _b${ta}.order_id = ${ta}.id")
+ * @Transient
+ * @Formula(select = "_b${ta}.total_amount", join = "join (select order_id, sum(order_qty*unit_price) as total_amount from o_order_detail group by order_id) as _b${ta} on _b${ta}.order_id = ${ta}.id")
  * Double totalAmount;
- * 
- * 
+ * + * }
*

* As the totalAmount formula is also Transient it is not included by default in * queries - it needs to be explicitly included. *

- * *
{@code
  *
  * // find by Id
  * Order o1 = Ebean.find(Order.class)
  *     .select("id, totalAmount")
  *     .setId(1).findUnique();
- * 
+ *
  * // find list ... using totalAmount in the where clause
  * List list = Ebean.find(Order.class)
  *     .select("id, totalAmount")
@@ -53,7 +52,7 @@ import com.avaje.ebean.Query;
  *     .eq("status", Order.Status.NEW)
  *     .gt("totalAmount", 10)
  *     .findList();
- * 
+ *
  * // as a join from customer
  * List l0 = Ebean.find(Customer.class)
  *     .select("id, name")
@@ -62,10 +61,10 @@ import com.avaje.ebean.Query;
  *     .gt("id", 0)
  *     .gt("orders.totalAmount", 10)
  *     .findList();
- * 
+ *
  * }
*/ -@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.TYPE }) +@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface Formula { @@ -84,7 +83,6 @@ public @interface Formula { *

* The join string should start with either "left join" or "join". *

- * *

* You will almost certainly use the "${ta}" as a place holder for the table * alias of the table you are joining back to (the "base table" of the entity @@ -94,7 +92,7 @@ public @interface Formula { * The example below is used to support a total count of topics created by a * user. *

- * + *

*

{@code
    *
    * join (select user_id, count(*) as topic_count from f_topic group by user_id) as _tc on _tc.user_id = ${ta}.id
diff --git a/src/main/java/com/avaje/ebean/annotation/History.java b/src/main/java/com/avaje/ebean/annotation/History.java
index 36888086d..9548b3cf1 100644
--- a/src/main/java/com/avaje/ebean/annotation/History.java
+++ b/src/main/java/com/avaje/ebean/annotation/History.java
@@ -12,7 +12,7 @@ import java.lang.annotation.Target;
  * typically automatically populated via database triggers.
  * 

*/ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface History { diff --git a/src/main/java/com/avaje/ebean/annotation/HistoryExclude.java b/src/main/java/com/avaje/ebean/annotation/HistoryExclude.java index a41dfe1d9..bae53aa35 100644 --- a/src/main/java/com/avaje/ebean/annotation/HistoryExclude.java +++ b/src/main/java/com/avaje/ebean/annotation/HistoryExclude.java @@ -18,7 +18,7 @@ import java.lang.annotation.Target; * support. *

*/ -@Target({ ElementType.FIELD }) +@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface HistoryExclude { diff --git a/src/main/java/com/avaje/ebean/annotation/Index.java b/src/main/java/com/avaje/ebean/annotation/Index.java index ae82a8802..426320f5f 100644 --- a/src/main/java/com/avaje/ebean/annotation/Index.java +++ b/src/main/java/com/avaje/ebean/annotation/Index.java @@ -29,7 +29,7 @@ public @interface Index { /** * When placed on the class (rather than field) you can specify the columns * to include in the index in order. - * + *

* Wnen placed on a field, and columnNames are specified, the field-column has to be included. * You can use "${fa}" for alias */ diff --git a/src/main/java/com/avaje/ebean/annotation/Indices.java b/src/main/java/com/avaje/ebean/annotation/Indices.java index 0886482ed..0e74559f7 100644 --- a/src/main/java/com/avaje/ebean/annotation/Indices.java +++ b/src/main/java/com/avaje/ebean/annotation/Indices.java @@ -4,9 +4,10 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; + /** * An annotation for declaring multiple indices at class or field level. - * + * * @author Roland Praml, FOCONIS AG */ @Target({ElementType.TYPE, ElementType.FIELD}) diff --git a/src/main/java/com/avaje/ebean/annotation/JsonIgnore.java b/src/main/java/com/avaje/ebean/annotation/JsonIgnore.java index 79635ddc1..822882a0c 100644 --- a/src/main/java/com/avaje/ebean/annotation/JsonIgnore.java +++ b/src/main/java/com/avaje/ebean/annotation/JsonIgnore.java @@ -8,8 +8,8 @@ import java.lang.annotation.Target; /** * Similar to Jackson JsonIgnore but provides the option to just ignore serialize or deserialize. *

- * This provides the same features as Expose but from the opposite perspective which is probably - * more common and more familiar to Jackson users. + * This provides the same features as Expose but from the opposite perspective which is probably + * more common and more familiar to Jackson users. *

*/ @Retention(RetentionPolicy.RUNTIME) @@ -29,4 +29,4 @@ public @interface JsonIgnore { * Defaults to {@code false}. */ boolean deserialize() default false; -} \ No newline at end of file +} diff --git a/src/main/java/com/avaje/ebean/annotation/PrivateOwned.java b/src/main/java/com/avaje/ebean/annotation/PrivateOwned.java index 684f5a416..a7d58f978 100644 --- a/src/main/java/com/avaje/ebean/annotation/PrivateOwned.java +++ b/src/main/java/com/avaje/ebean/annotation/PrivateOwned.java @@ -18,7 +18,7 @@ import java.lang.annotation.Target; * in that they are no longer associated/linked to their parent bean. *

*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface PrivateOwned { diff --git a/src/main/java/com/avaje/ebean/annotation/Sql.java b/src/main/java/com/avaje/ebean/annotation/Sql.java index 223db95c5..a37c70d96 100644 --- a/src/main/java/com/avaje/ebean/annotation/Sql.java +++ b/src/main/java/com/avaje/ebean/annotation/Sql.java @@ -11,7 +11,7 @@ import java.lang.annotation.Target; * This means the entity bean has no base table specified (via @Table). *

*/ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface Sql { diff --git a/src/main/java/com/avaje/ebean/annotation/Transactional.java b/src/main/java/com/avaje/ebean/annotation/Transactional.java index 5de7f8b6c..db998ad94 100644 --- a/src/main/java/com/avaje/ebean/annotation/Transactional.java +++ b/src/main/java/com/avaje/ebean/annotation/Transactional.java @@ -1,14 +1,14 @@ package com.avaje.ebean.annotation; +import com.avaje.ebean.TxIsolation; +import com.avaje.ebean.TxType; +import com.avaje.ebean.config.PersistBatch; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.avaje.ebean.TxIsolation; -import com.avaje.ebean.TxType; -import com.avaje.ebean.config.PersistBatch; - /** * Specify transaction scoping for a method. *

@@ -33,22 +33,22 @@ import com.avaje.ebean.config.PersistBatch; * to set the default behaviour to rollback on any exception and optionally * change the setting to be consistent with EJB/Spring if people wish to do so. *

- * + *

*

{@code
  *
  *  // a normal class
  *  public class MySimpleUserService {
- * 
+ *
  *    // this method is transactional automatically handling
  *    // transaction begin, commit and rollback etc
  *    @Transactional
  *    public void runInTrans() throws IOException {
- * 
+ *
  *      // tasks performed within the transaction
  *      ...
  *      // find some objects
  *      Customer cust = ebeanServer.find(Customer.class, 42);
- *    
+ *
  *      Order order = ...;
  *      ...
  *      // save some objects
@@ -58,7 +58,7 @@ import com.avaje.ebean.config.PersistBatch;
  *
  * }
*/ -@Target({ ElementType.METHOD, ElementType.TYPE }) +@Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface Transactional { diff --git a/src/main/java/com/avaje/ebean/annotation/UpdateMode.java b/src/main/java/com/avaje/ebean/annotation/UpdateMode.java index f051262a8..0353737bc 100644 --- a/src/main/java/com/avaje/ebean/annotation/UpdateMode.java +++ b/src/main/java/com/avaje/ebean/annotation/UpdateMode.java @@ -14,13 +14,13 @@ import java.lang.annotation.Target; *

* Note that the default can be set via ebean.properties. *

- * + *

*

  * ## Set to update all loaded properties
  * ebean.updateChangesOnly=false
  * 
*/ -@Target({ ElementType.TYPE }) +@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface UpdateMode { diff --git a/src/main/java/com/avaje/ebean/annotation/UpdatedTimestamp.java b/src/main/java/com/avaje/ebean/annotation/UpdatedTimestamp.java index b93a5ab37..8a181369e 100644 --- a/src/main/java/com/avaje/ebean/annotation/UpdatedTimestamp.java +++ b/src/main/java/com/avaje/ebean/annotation/UpdatedTimestamp.java @@ -13,7 +13,7 @@ import java.lang.annotation.Target; * towards a better naming convention (WhenCreated, WhenModified). *

*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface UpdatedTimestamp { diff --git a/src/main/java/com/avaje/ebean/annotation/WhenCreated.java b/src/main/java/com/avaje/ebean/annotation/WhenCreated.java index 0d20fdc7a..6779254d1 100644 --- a/src/main/java/com/avaje/ebean/annotation/WhenCreated.java +++ b/src/main/java/com/avaje/ebean/annotation/WhenCreated.java @@ -22,7 +22,7 @@ import java.lang.annotation.Target; * timestamp value after the insert has occurred. You need to fetch the entity * back to get the inserted timestamp if you want to used it. *

- * + *

*

Example:

*
{@code
  *
@@ -31,7 +31,7 @@ import java.lang.annotation.Target;
  *
  * }
*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface WhenCreated { diff --git a/src/main/java/com/avaje/ebean/annotation/WhenModified.java b/src/main/java/com/avaje/ebean/annotation/WhenModified.java index 1dbfd674e..3e9838816 100644 --- a/src/main/java/com/avaje/ebean/annotation/WhenModified.java +++ b/src/main/java/com/avaje/ebean/annotation/WhenModified.java @@ -12,7 +12,7 @@ import java.lang.annotation.Target; * towards a better naming convention (WhenCreated, WhenModified). *

*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface WhenModified { diff --git a/src/main/java/com/avaje/ebean/annotation/Where.java b/src/main/java/com/avaje/ebean/annotation/Where.java index 5fc586593..46ecc25ea 100644 --- a/src/main/java/com/avaje/ebean/annotation/Where.java +++ b/src/main/java/com/avaje/ebean/annotation/Where.java @@ -8,37 +8,33 @@ import java.lang.annotation.Target; /** * Add an Literal to add to the where clause when a many property (List, Set or * Map) is loaded or refreshed. - * *
{@code
  *
  * // on a OneToMany property...
- * 
+ *
  * @OneToMany
  * @Where(clause = "deleted='y'")
  * List topics;
  *
  * }
- * *

* Note that you can include "${ta}" as a place holder for the table alias if * you need to include the table alias in the clause. *

- * *
{@code
  * // ... including the ${ta} table alias placeholder...
- * 
+ *
  * @OneToMany
  * @Where(clause = "${ta}.deleted='y'")
  * List topics;
  *
  * }
- * *

* This will be added to the where clause when lazy loading the OneToMany * property or when there is a join to that OneToMany property. *

*/ -@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.TYPE }) +@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface Where { diff --git a/src/main/java/com/avaje/ebean/annotation/WhoCreated.java b/src/main/java/com/avaje/ebean/annotation/WhoCreated.java index c9dcfdfae..8bb199834 100644 --- a/src/main/java/com/avaje/ebean/annotation/WhoCreated.java +++ b/src/main/java/com/avaje/ebean/annotation/WhoCreated.java @@ -12,8 +12,7 @@ import java.lang.annotation.Target; * To use this annotation you need to implement CurrentUserProvider. * The type of the bean property should match the type returned by * CurrentUserProvider. - *

- + *

*

Example:

*
{@code
  *
@@ -22,7 +21,7 @@ import java.lang.annotation.Target;
  *
  * }
*/ -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface WhoCreated { diff --git a/src/main/java/com/avaje/ebean/annotation/WhoModified.java b/src/main/java/com/avaje/ebean/annotation/WhoModified.java index 1ef57e298..5bd2c9de0 100644 --- a/src/main/java/com/avaje/ebean/annotation/WhoModified.java +++ b/src/main/java/com/avaje/ebean/annotation/WhoModified.java @@ -13,7 +13,6 @@ import java.lang.annotation.Target; * The type of the bean property should match the type returned by * CurrentUserProvider. *

- * *

Example:

*
{@code
  *
diff --git a/src/main/java/com/avaje/ebean/annotation/package.html b/src/main/java/com/avaje/ebean/annotation/package.html
index c39eed7aa..a3cb62253 100644
--- a/src/main/java/com/avaje/ebean/annotation/package.html
+++ b/src/main/java/com/avaje/ebean/annotation/package.html
@@ -1,14 +1,14 @@
 
 
-	
-	Extra deployment annotations
+  
+  Extra deployment annotations
 
 
 Extra deployment annotations
 
 

-Extra deployment annotations for entity beans. + Extra deployment annotations for entity beans.

- \ No newline at end of file +