A test for unexpected behavior JetBrains' Exposed library when creating records where columns reference an EntityId
.
docker run \
--name exposed-entityid-example \
--publish 54321:5432 \
--rm \
--detach \
--env POSTGRES_PASSWORD=example \
postgres:9.6-alpine
docker run \
--interactive \
--rm \
--link exposed-entityid-example:postgres \
--env PGPASSWORD=example \
postgres:9.6-alpine \
psql --host=postgres \
--username=postgres <<EOF
CREATE ROLE example NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN PASSWORD 'example';
CREATE DATABASE example OWNER example ENCODING 'UTF8';
EOF
./gradlew test
docker stop exposed-entityid-example