diff --git a/docs/src/main/paradox/typed/persistence.md b/docs/src/main/paradox/typed/persistence.md index a3afe529eb..3a6fdfd57f 100644 --- a/docs/src/main/paradox/typed/persistence.md +++ b/docs/src/main/paradox/typed/persistence.md @@ -119,14 +119,6 @@ to help with constructing such `PersistenceId` from an `entityTypeHint` and `ent The default separator when concatenating the `entityTypeHint` and `entityId` is `|`, but a custom separator is supported. -@@@ note - -The `|` separator is also used in Lagom's `scaladsl.PersistentEntity` but no separator is used -in Lagom's `javadsl.PersistentEntity`. For compatibility with Lagom's `javadsl.PersistentEntity` -you should use `""` as the separator. - -@@@ - A custom identifier can be created with @apidoc[PersistenceId.ofUniqueId](typed.PersistenceId$) {scala="#ofUniqueId(id:String):org.apache.pekko.persistence.typed.PersistenceId" java="#ofUniqueId(java.lang.String)"}. ### Command handler diff --git a/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/PersistenceId.scala b/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/PersistenceId.scala index 08bba0f44c..8eb0a95d25 100644 --- a/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/PersistenceId.scala +++ b/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/PersistenceId.scala @@ -17,8 +17,6 @@ object PersistenceId { /** * Default separator character used for concatenating a `typeHint` with `entityId` to construct unique persistenceId. - * This must be same as in Lagom's `scaladsl.PersistentEntity`, for compatibility. No separator is used - * in Lagom's `javadsl.PersistentEntity` so for compatibility with that the `""` separator must be used instead. */ val DefaultSeparator = "|" @@ -37,10 +35,6 @@ object PersistenceId { * * Another separator can be defined by using the `apply` that takes a `separator` parameter. * - * The `|` separator is also used in Lagom's `scaladsl.PersistentEntity` but no separator is used - * in Lagom's `javadsl.PersistentEntity`. For compatibility with Lagom's `javadsl.PersistentEntity` - * you should use `""` as the separator. - * * @throws java.lang.IllegalArgumentException if the `entityTypeHint` or `entityId` contains `|` */ def apply(entityTypeHint: String, entityId: String): PersistenceId = @@ -61,10 +55,6 @@ object PersistenceId { * * The default separator `|` is used by the `apply` that doesn't take a `separator` parameter. * - * The `|` separator is also used in Lagom's `scaladsl.PersistentEntity` but no separator is used - * in Lagom's `javadsl.PersistentEntity`. For compatibility with Lagom's `javadsl.PersistentEntity` - * you should use `""` as the separator. - * * @throws java.lang.IllegalArgumentException if the `entityTypeHint` or `entityId` contains `separator` */ def apply(entityTypeHint: String, entityId: String, separator: String): PersistenceId = { @@ -95,10 +85,6 @@ object PersistenceId { * * Another separator can be defined by using the `PersistenceId.of` that takes a `separator` parameter. * - * The `|` separator is also used in Lagom's `scaladsl.PersistentEntity` but no separator is used - * in Lagom's `javadsl.PersistentEntity`. For compatibility with Lagom's `javadsl.PersistentEntity` - * you should use `""` as the separator. - * * @throws java.lang.IllegalArgumentException if the `entityTypeHint` or `entityId` contains `|` */ def of(entityTypeHint: String, entityId: String): PersistenceId = @@ -119,10 +105,6 @@ object PersistenceId { * * The default separator `|` is used by the `apply` that doesn't take a `separator` parameter. * - * The `|` separator is also used in Lagom's `scaladsl.PersistentEntity` but no separator is used - * in Lagom's `javadsl.PersistentEntity`. For compatibility with Lagom's `javadsl.PersistentEntity` - * you should use `""` as the separator. - * * @throws java.lang.IllegalArgumentException if the `entityTypeHint` or `entityId` contains `separator` */ def of(entityTypeHint: String, entityId: String, separator: String): PersistenceId =