Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamura-to committed Jan 18, 2025
1 parent 005404e commit 79631ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To simplify your build.script(.kts), we recommend that you use the `org.seasar.d

See build.gradle.kts in the `getting-started`_ repository as an example.

.. _build-with-maven
.. _build-with-maven:

Build with Maven
=================
Expand Down
10 changes: 5 additions & 5 deletions docs/kotlin-support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Entity classes
* Define as a plain class
* Specify a ``Metamodel`` annotation to the ``metamodel`` element of ``@Entity``

.. code-block:: java
.. code-block:: kotlin
@Entity(metamodel = Metamodel())
class Person : AbstractPerson() {
Expand Down Expand Up @@ -48,7 +48,7 @@ Domain classes
* Define only one property whose name is ``value`` in the constructor
* Use `val` for the property definition

.. code-block:: java
.. code-block:: kotlin
@Domain(valueType = String::class)
data class Name(val value: String)
Expand All @@ -61,7 +61,7 @@ Embeddable classes
* Define properties only in the constructor
* Use `val` for the property definitions

.. code-block:: java
.. code-block:: kotlin
@Embeddable
data class Address(val city: String, val street: String)
Expand All @@ -71,7 +71,7 @@ Dao interfaces

* Specify a SQL template to ``@org.seasar.doma.Sql``

.. code-block:: java
.. code-block:: kotlin
@Dao
interface PersonDao {
Expand All @@ -85,7 +85,7 @@ Dao interfaces
fun insert(person: Person): Int
}
.. code-block:: java
.. code-block:: kotlin
val dao: PersonDao = ...
val person = Person(name = Name("John"), address = Address(city = "Tokyo", street = "Yaesu"))
Expand Down

0 comments on commit 79631ee

Please sign in to comment.