![JAR search and dependency download from the Maven repository](/logo.png)
main.dev.teogor.stitch.codegen.model.DaoData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegen Show documentation
Show all versions of codegen Show documentation
🪡 Stitch handles the Room boilerplate, including automatic generation of repositories, dependency injection integration, and flexible customizations.
The newest version!
/*
* Copyright 2024 teogor (Teodor Grigor)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.teogor.stitch.codegen.model
import com.squareup.kotlinpoet.TypeName
data class DatabaseModel(
val entities: List,
val type: TypeName,
val functions: List,
)
data class RoomModel(
val name: String,
val packageName: String,
val entity: TypeName,
val dao: TypeName? = null,
val fields: List,
val functions: List,
) {
val hasDao: Boolean = dao != null
}
data class FieldKind(
val name: String,
val type: TypeName,
)
data class FunctionKind(
val name: String,
val isSuspend: Boolean,
val returnType: TypeName,
val parameters: List,
val enableRawOperationGeneration: Boolean = false,
)
data class ParameterKind(
val name: String,
val type: TypeName,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy