Skip to content

Conversation

eivanov89
Copy link
Member

No description provided.

@KirillKurdyukov
Copy link
Contributor

KirillKurdyukov commented Sep 10, 2025

@Repository
class YdbRepository {

    @Autowired
    lateinit var entityManager: EntityManager

    @Transactional(readOnly = true)
    fun getFixedString(s: String): String {
        return entityManager.createNativeQuery("SELECT ?1")
                .setParameter(1, s)
                .singleResult.toString()
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants