Skip to content

Commit

Permalink
remove mapto,combineto files
Browse files Browse the repository at this point in the history
and combine annotation in one file
  • Loading branch information
liodali committed Mar 6, 2024
1 parent 000893e commit 0669368
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
27 changes: 27 additions & 0 deletions src/main/kotlin/mapper/annotations.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package mapper

import kotlin.reflect.KClass

/**
* Annotation : [CombineTo]
*/
@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
annotation class CombineTo(
val destinationAttribute: String,
val index: Int = 0,
val separator: String = " "
)


@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
annotation class MapTo(val destinationAttributeName: String)


@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
annotation class TransformationFrom(val fromAttributes:Array<String>,val converter:KClass<MapsterConverter<*,*>>)
10 changes: 0 additions & 10 deletions src/main/kotlin/mapper/annotations/CombineTo.kt

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/kotlin/mapper/annotations/MapTo.kt

This file was deleted.

0 comments on commit 0669368

Please sign in to comment.