# Spring Data-Style Repositories Compiled to Native Code

DevFeed: [Spring Data-Style Repositories Compiled to Native Code](<https://devfeed.tech/articles/spring-data-style-repositories-compiled-to-native-code-88873.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/repositories-and-transactions-without-surprises/>)

Author: Shai Almog

Published: 2026-10-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [D](<https://devfeed.tech/topics/d.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [native-compilation](<https://devfeed.tech/tags/native-compilation.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [spring](<https://devfeed.tech/tags/spring.md>), [spring-data](<https://devfeed.tech/tags/spring-data.md>), [transaction](<https://devfeed.tech/tags/transaction.md>)

## AI overview

The article explains Codename One's generated Spring Data-style repositories for Java and how they compile into native executables without runtime repository scanning or proxy generation. It demonstrates query methods, pagination and aggregation, and explains how service-owned transactions, isolation levels and completion callbacks govern database work and post-commit actions.

## Source excerpt

Use Spring Data-style repositories and Hibernate persistence conventions with generated Java implementations, native compilation and Spring-style transaction boundaries.