This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Bean("jmix_LiquibaseProperties") | |
| @ConfigurationProperties(prefix = "main.liquibase") | |
| @ConditionalOnClass({SpringLiquibase.class}) | |
| @ConditionalOnMissingBean(name = "jmix_LiquibaseProperties") | |
| public LiquibaseProperties liquibaseProperties() { | |
| return new LiquibaseProperties(); | |
| } | |
| @Bean(name = "jmix_Liquibase") | |
| @ConditionalOnClass({SpringLiquibase.class}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.company.onboarding.app; | |
| import com.company.onboarding.entity.Department; | |
| import com.company.onboarding.entity.User; | |
| public interface CustomDepartmentRepository { | |
| void assignManager(Department department, User manager); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Bean | |
| @ConfigurationProperties("myliquibase.datasource") | |
| public DataSource liquibaseDataSource() { | |
| return DataSourceBuilder.create().build(); | |
| } | |
| @Bean(name = "jmix_Liquibase") | |
| public SpringLiquibase liquibase(@Qualifier("liquibaseDataSource") DataSource dataSource, | |
| @Qualifier("jmix_LiquibaseProperties") LiquibaseProperties properties) { | |
| return JmixLiquibaseCreator.create(dataSource, properties); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |