Skip to content

Commit 8791851

Browse files
committed
Add links to help direct AI bots to the guides
1 parent 8b7db97 commit 8791851

5 files changed

Lines changed: 35 additions & 0 deletions

File tree

docs/db-migrations/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ <h1 id="breadcrumb">
146146
</div>
147147
</form>
148148

149+
150+
<p>
151+
<strong>AI agent / step-by-step guide:</strong>
152+
<a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-db-migration-generation.md">Database migration generation</a>
153+
</p>
154+
149155
<h2 id="db-migrations">DB Migrations</h2>
150156
<p>
151157
DB Migrations are DDL changes that are applied typically when the application is started.

docs/getting-started/ebean-test.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ <h1 id="breadcrumb">
9696
</div>
9797
</form>
9898

99+
100+
<p>
101+
<strong>AI agent / step-by-step guide:</strong>
102+
<a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-postgres-test-container.md">Test container setup (PostgreSQL / PostGIS via Docker)</a>
103+
</p>
104+
99105
<h2>Test setup</h2>
100106
<p>
101107
<code>ebean-test</code> is used to setup and configure Ebean for running tests.

docs/getting-started/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,23 @@ <h3 id="examples">Example projects</h3>
122122

123123
<p>&nbsp</p>
124124

125+
<h2 id="ai-guides">Step-by-step guides (for AI agents and developers)</h2>
126+
<p>
127+
Prescriptive step-by-step guides for adding Ebean to an existing project are available
128+
in the Ebean GitHub repository. These guides are written to be followed by AI coding
129+
agents (Copilot, Cursor, Claude Code, etc.) as well as human developers.
130+
</p>
131+
<ul>
132+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-postgres-maven-pom.md">Add Ebean + PostgreSQL — Maven POM setup</a></li>
133+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-postgres-database-config.md">Database configuration (DataSourceBuilder + DatabaseBuilder)</a></li>
134+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-postgres-test-container.md">Test container setup (PostgreSQL / PostGIS via Docker)</a></li>
135+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-db-migration-generation.md">Database migration generation</a></li>
136+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/lombok-with-ebean-entity-beans.md">Using Lombok with Ebean entity beans</a></li>
137+
<li><a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/README.md">Full guide index</a></li>
138+
</ul>
139+
140+
<p>&nbsp</p>
141+
125142
<h2 id="ide">Install IDE Plugin</h2>
126143
<p>
127144
Ebean uses bytecode enhancement to provide <code>dirty checking</code> and <code>lazy loading</code>.

docs/getting-started/maven.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ <h1 id="breadcrumb">
9797
</form>
9898

9999

100+
<p>
101+
<strong>AI agent / step-by-step guide:</strong>
102+
<a href="https://github.com/ebean-orm/ebean/blob/main/docs/guides/add-ebean-postgres-maven-pom.md">Add Ebean + PostgreSQL — Maven POM setup</a>
103+
</p>
104+
100105
<h2 id="jdbc-dep">JDBC Driver(s)</h2>
101106
<p>
102107
Add the dependency for the JDBC Driver(s) you want to use.

llms.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Step-by-step instructions written for AI agents to add Ebean to an existing Mave
3333
- [Add Ebean + PostgreSQL — Step 2: Database configuration](https://raw.githubusercontent.com/ebean-orm/ebean/main/docs/guides/add-ebean-postgres-database-config.md): Configure the Ebean Database bean using DataSourceBuilder and DatabaseConfig with Avaje Inject. Covers minimal (master-only) and extended (master + read-only replica) setup. Includes verification steps and troubleshooting table.
3434
- [Add Ebean + PostgreSQL — Step 3: Test container setup](https://raw.githubusercontent.com/ebean-orm/ebean/main/docs/guides/add-ebean-postgres-test-container.md): Start a PostgreSQL or PostGIS Docker container for tests using ebean-test-containers and a @TestScope @Factory with Avaje Inject. Covers image mirror for CI/ECR, autoReadOnlyDataSource, dumpMetrics, PostGIS variant with optional LW/HexWKB mode, and keeping containers running locally.
3535
- [Lombok with Ebean entity beans](https://raw.githubusercontent.com/ebean-orm/ebean/main/docs/guides/lombok-with-ebean-entity-beans.md): Which Lombok annotations to use and avoid on entity beans. Explains why @Data is incompatible (hashCode/equals breaks entity identity, toString triggers lazy loading). Prescribes @Getter + @Setter + @Accessors(chain=true). Includes compatibility table for all common Lombok annotations.
36+
- [DB migration generation](https://raw.githubusercontent.com/ebean-orm/ebean/main/docs/guides/add-ebean-db-migration-generation.md): Add GenerateDbMigration.java to generate schema diff migrations offline (no database needed). Configure the migration runner with ebean.migration.run=true. Understand .sql and .model.xml output files. Covers version naming, multi-platform, pending drops, setPathToResources for multi-module projects, and named database support.
3637

3738
## Entities and Mapping
3839

0 commit comments

Comments
 (0)