> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

> [!NOTE]
>
> For a brief overview of the changes, see the [Release notes](https://docs.activeviam.com/solutions/libraries/what-if/5.0/dev/dev-release/release-notes.md).
> For information on upgrading from previous versions, see the
> [Migration guides](https://docs.activeviam.com/solutions/libraries/what-if/5.0/dev/dev-release/migration-guide.md).

**5.0.0-AS6.1**

### Added

| Issue Key | Details |
| - | - |
| BAST-1406 | Introduced Liquibase for database schema migrations. The `PARENTBRANCH` column is added to `DATASTORE_SIMULATIONS` via a versioned changeset. |
| BAST-1409 | Added support for branch chaining, allowing simulations to target non-master parent branches. |
| BAST-1424 | Added Spring Boot Starter for auto-configuration of all Atoti What-If beans. |
| BAST-1424 | Added `WhatIfProperties` for property-based configuration with `atoti.what-if` prefix. |
| BAST-1424 | Added `IWhatIfPersistenceProperties` interface for providing Hibernate configuration. |
| BAST-1424 | Added `atoti.what-if.enable` property as a global toggle for all What-If features (default: `true`). |
| BAST-1424 | Added `@ConditionalOnWhatIfEnabled` annotation with `BeanEnabledWhatIf` and `ConfigurationEnabledWhatIf` condition classes for conditional bean registration. |

### Changed

| Issue Key | Details |
| - | - |
| BAST-1424 | `DatabaseSimulationsWorkflow` now uses constructor injection instead of setter injection. |
| BAST-1424 | `DatabaseSimulationsRestService` now uses constructor injection with three required parameters. |

### Fixed

| Issue Key | Details |
| - | - |
| BAST-1409 | Fixed `HibernateSimulationPersistenceManager.findAll()` to use AND logic instead of OR when combining predicates. |
| BAST-1409 | Fixed enum type comparison in `HibernateSimulationPersistenceManager.findAll()` criteria queries. |

### Removed

| Issue Key | Details |
| - | - |
| BAST-1424 | Removed `DatabaseSimulationPersistenceManager`. Use `HibernateSimulationPersistenceManager` instead. |
| BAST-1424 | Removed inner exception classes from `DatabaseSimulationsRestService`. Use classes in `com.activeviam.tools.whatif.rest`. |
| BAST-1424 | Removed `RestDistributedDatabaseService` constructors with `distributedPivot` parameter. |
| BAST-1424 | Removed `RestDistributedDatabaseService.isConsistentStatus()` method. |
