WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/opt/homebrew/Cellar/maven/3.9.11/libexec/lib/guice-5.1.0-classes.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
SLF4J(W): Class path contains multiple SLF4J providers.
SLF4J(W): Found provider [ch.qos.logback.classic.spi.LogbackServiceProvider@17497425]
SLF4J(W): Found provider [org.slf4j.simple.SimpleServiceProvider@f0da945]
SLF4J(W): See https://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J(I): Actual provider is of type [ch.qos.logback.classic.spi.LogbackServiceProvider@17497425]
14:37:36.509 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.storycove.repository.StoryRepositoryTest]: StoryRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
14:37:36.562 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.storycove.StoryCoveApplication for test class com.storycove.repository.StoryRepositoryTest
14:37:36.581 [main] INFO org.testcontainers.images.PullPolicy -- Image pull policy will be performed by: DefaultPullPolicy()
14:37:36.582 [main] INFO org.testcontainers.utility.ImageNameSubstitutor -- Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
14:37:36.595 [main] INFO org.testcontainers.DockerClientFactory -- Testcontainers version: 1.21.3
14:37:36.645 [main] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy -- Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
14:37:36.778 [main] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy -- Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
14:37:36.779 [main] INFO org.testcontainers.DockerClientFactory -- Docker host IP address is localhost
14:37:36.813 [main] INFO org.testcontainers.DockerClientFactory -- Connected to docker: 
  Server Version: 5.6.0
  API Version: 1.41
  Operating System: fedora
  Total Memory: 3612 MB
14:37:36.890 [main] INFO tc.testcontainers/ryuk:0.12.0 -- Creating container for image: testcontainers/ryuk:0.12.0
14:37:36.892 [main] INFO org.testcontainers.utility.RegistryAuthLocator -- Failure when attempting to lookup auth config. Please ignore if you don't have images in an authenticated registry. Details: (dockerImageName: testcontainers/ryuk:0.12.0, configFile: /Users/shardegger/.docker/config.json, configEnv: DOCKER_AUTH_CONFIG). Falling back to docker-java default behaviour. Exception message: Status 404: No config supplied. Checked in order: /Users/shardegger/.docker/config.json (file not found), DOCKER_AUTH_CONFIG (not set)
14:37:36.941 [main] INFO tc.testcontainers/ryuk:0.12.0 -- Container testcontainers/ryuk:0.12.0 is starting: 0fb7e7e8b31d7de6ebbc541d847a5e9afab1b41bcc27a5cb4effa37f4fa9624d
14:37:37.128 [main] INFO tc.testcontainers/ryuk:0.12.0 -- Container testcontainers/ryuk:0.12.0 started in PT0.238098S
14:37:37.131 [main] INFO org.testcontainers.utility.RyukResourceReaper -- Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
14:37:37.131 [main] INFO org.testcontainers.DockerClientFactory -- Checking the system...
14:37:37.131 [main] INFO org.testcontainers.DockerClientFactory -- ✔︎ Docker server version should be at least 1.6.0
14:37:37.135 [main] INFO tc.postgres:15-alpine -- Creating container for image: postgres:15-alpine
14:37:37.212 [main] INFO tc.postgres:15-alpine -- Container postgres:15-alpine is starting: 59ebfe523c3e5c52d57c3e81327b6eab4c613040930dbaa51e371f20d9756488
14:37:38.542 [main] INFO tc.postgres:15-alpine -- Container postgres:15-alpine started in PT1.406845S
14:37:38.544 [main] INFO tc.postgres:15-alpine -- Container is started (JDBC URL: jdbc:postgresql://localhost:34775/storycove_test?loggerLevel=OFF)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.5.5)

2025-09-20T14:37:38.692+02:00  INFO 49733 --- [           main] c.s.repository.StoryRepositoryTest       : Starting StoryRepositoryTest using Java 24.0.1 with PID 49733 (started by shardegger in /Users/shardegger/Documents/Projects/StoryCove/backend)
2025-09-20T14:37:38.692+02:00 DEBUG 49733 --- [           main] c.s.repository.StoryRepositoryTest       : Running with Spring Boot v3.5.5, Spring v6.2.10
2025-09-20T14:37:38.692+02:00  INFO 49733 --- [           main] c.s.repository.StoryRepositoryTest       : The following 1 profile is active: "test"
2025-09-20T14:37:38.837+02:00  INFO 49733 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-09-20T14:37:38.867+02:00  INFO 49733 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 26 ms. Found 8 JPA repository interfaces.
2025-09-20T14:37:38.958+02:00  INFO 49733 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2025-09-20T14:37:38.973+02:00  INFO 49733 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.6.26.Final
2025-09-20T14:37:38.984+02:00  INFO 49733 --- [           main] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2025-09-20T14:37:39.062+02:00  INFO 49733 --- [           main] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-09-20T14:37:39.073+02:00  INFO 49733 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2025-09-20T14:37:39.136+02:00  INFO 49733 --- [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@4cadd4d4
2025-09-20T14:37:39.136+02:00  INFO 49733 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2025-09-20T14:37:39.150+02:00  WARN 49733 --- [           main] org.hibernate.orm.deprecation            : HHH90000025: PostgreSQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2025-09-20T14:37:39.158+02:00  INFO 49733 --- [           main] org.hibernate.orm.connections.pooling    : HHH10001005: Database info:
	Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
	Database driver: undefined/unknown
	Database version: 15.14
	Autocommit mode: undefined/unknown
	Isolation level: undefined/unknown
	Minimum pool size: undefined/unknown
	Maximum pool size: undefined/unknown
2025-09-20T14:37:39.569+02:00  INFO 49733 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
Hibernate: 
    set client_min_messages = WARNING
Hibernate: 
    alter table if exists author_urls 
       drop constraint if exists FKdqhp51m0uveybsts098gd79uo
Hibernate: 
    alter table if exists collection_stories 
       drop constraint if exists FKr55ho4vhj0wp03x13iskr1jds
Hibernate: 
    alter table if exists collection_stories 
       drop constraint if exists FK7n41tbbrt7r2e81hpu3612r1o
Hibernate: 
    alter table if exists collection_tags 
       drop constraint if exists FKceq7ggev8n8ibjui1x5yo4x67
Hibernate: 
    alter table if exists collection_tags 
       drop constraint if exists FKq9sa5s8csdpbphrvb48tts8jt
Hibernate: 
    alter table if exists reading_positions 
       drop constraint if exists FKglfhdhflan3pgyr2u0gxi21i5
Hibernate: 
    alter table if exists stories 
       drop constraint if exists FKhwecpqeaxy40ftrctef1u7gw7
Hibernate: 
    alter table if exists stories 
       drop constraint if exists FK1kulyvy7wwcolp2gkndt57cp7
Hibernate: 
    alter table if exists story_tags 
       drop constraint if exists FKmans33ijt0nf65t0sng2r848j
Hibernate: 
    alter table if exists story_tags 
       drop constraint if exists FKq9guid7swnjxwdpgxj3jo1rsi
Hibernate: 
    alter table if exists tag_aliases 
       drop constraint if exists FKqfsawmcj3ey4yycb6958y24ch
Hibernate: 
    drop table if exists author_urls cascade
Hibernate: 
    drop table if exists authors cascade
Hibernate: 
    drop table if exists collection_stories cascade
Hibernate: 
    drop table if exists collection_tags cascade
Hibernate: 
    drop table if exists collections cascade
Hibernate: 
    drop table if exists reading_positions cascade
Hibernate: 
    drop table if exists series cascade
Hibernate: 
    drop table if exists stories cascade
Hibernate: 
    drop table if exists story_tags cascade
Hibernate: 
    drop table if exists tag_aliases cascade
Hibernate: 
    drop table if exists tags cascade
Hibernate: 
    create table author_urls (
        author_id uuid not null,
        url varchar(255)
    )
Hibernate: 
    create table authors (
        author_rating integer,
        created_at timestamp(6) not null,
        updated_at timestamp(6) not null,
        id uuid not null,
        avatar_image_path varchar(255),
        name varchar(255) not null,
        notes TEXT,
        primary key (id)
    )
Hibernate: 
    create table collection_stories (
        position integer not null,
        added_at timestamp(6) not null,
        collection_id uuid not null,
        story_id uuid not null,
        primary key (collection_id, story_id),
        unique (collection_id, position)
    )
Hibernate: 
    create table collection_tags (
        collection_id uuid not null,
        tag_id uuid not null,
        primary key (collection_id, tag_id)
    )
Hibernate: 
    create table collections (
        is_archived boolean not null,
        rating integer,
        created_at timestamp(6) not null,
        updated_at timestamp(6) not null,
        id uuid not null,
        cover_image_path varchar(500),
        name varchar(500) not null,
        description TEXT,
        primary key (id)
    )
Hibernate: 
    create table reading_positions (
        chapter_index integer,
        character_position integer,
        percentage_complete float(53),
        word_position integer,
        created_at timestamp(6) not null,
        updated_at timestamp(6) not null,
        id uuid not null,
        story_id uuid not null,
        context_after varchar(500),
        context_before varchar(500),
        chapter_title varchar(255),
        epub_cfi TEXT,
        primary key (id)
    )
Hibernate: 
    create table series (
        created_at timestamp(6) not null,
        id uuid not null,
        description varchar(1000),
        name varchar(255) not null,
        primary key (id)
    )
Hibernate: 
    create table stories (
        is_read boolean,
        rating integer,
        reading_position integer,
        volume integer,
        word_count integer,
        created_at timestamp(6) not null,
        last_read_at timestamp(6),
        updated_at timestamp(6) not null,
        author_id uuid,
        id uuid not null,
        series_id uuid,
        description varchar(1000),
        content_html TEXT,
        content_plain TEXT,
        cover_path varchar(255),
        source_url varchar(255),
        summary TEXT,
        title varchar(255) not null,
        primary key (id)
    )
Hibernate: 
    create table story_tags (
        story_id uuid not null,
        tag_id uuid not null,
        primary key (story_id, tag_id)
    )
Hibernate: 
    create table tag_aliases (
        created_from_merge boolean not null,
        created_at timestamp(6) not null,
        canonical_tag_id uuid not null,
        id uuid not null,
        alias_name varchar(100) not null unique,
        primary key (id)
    )
Hibernate: 
    create table tags (
        color varchar(7),
        created_at timestamp(6) not null,
        id uuid not null,
        name varchar(100) not null unique,
        description varchar(500),
        primary key (id)
    )
Hibernate: 
    create index idx_reading_position_story 
       on reading_positions (story_id)
Hibernate: 
    alter table if exists author_urls 
       add constraint FKdqhp51m0uveybsts098gd79uo 
       foreign key (author_id) 
       references authors
Hibernate: 
    alter table if exists collection_stories 
       add constraint FKr55ho4vhj0wp03x13iskr1jds 
       foreign key (collection_id) 
       references collections
Hibernate: 
    alter table if exists collection_stories 
       add constraint FK7n41tbbrt7r2e81hpu3612r1o 
       foreign key (story_id) 
       references stories
Hibernate: 
    alter table if exists collection_tags 
       add constraint FKceq7ggev8n8ibjui1x5yo4x67 
       foreign key (tag_id) 
       references tags
Hibernate: 
    alter table if exists collection_tags 
       add constraint FKq9sa5s8csdpbphrvb48tts8jt 
       foreign key (collection_id) 
       references collections
Hibernate: 
    alter table if exists reading_positions 
       add constraint FKglfhdhflan3pgyr2u0gxi21i5 
       foreign key (story_id) 
       references stories
Hibernate: 
    alter table if exists stories 
       add constraint FKhwecpqeaxy40ftrctef1u7gw7 
       foreign key (author_id) 
       references authors
Hibernate: 
    alter table if exists stories 
       add constraint FK1kulyvy7wwcolp2gkndt57cp7 
       foreign key (series_id) 
       references series
Hibernate: 
    alter table if exists story_tags 
       add constraint FKmans33ijt0nf65t0sng2r848j 
       foreign key (tag_id) 
       references tags
Hibernate: 
    alter table if exists story_tags 
       add constraint FKq9guid7swnjxwdpgxj3jo1rsi 
       foreign key (story_id) 
       references stories
Hibernate: 
    alter table if exists tag_aliases 
       add constraint FKqfsawmcj3ey4yycb6958y24ch 
       foreign key (canonical_tag_id) 
       references tags
2025-09-20T14:37:39.609+02:00  INFO 49733 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2025-09-20T14:37:39.729+02:00  INFO 49733 --- [           main] o.s.d.j.r.query.QueryEnhancerFactory     : Hibernate is in classpath; If applicable, HQL parser will be used.
2025-09-20T14:37:40.267+02:00  INFO 49733 --- [           main] c.s.repository.StoryRepositoryTest       : Started StoryRepositoryTest in 1.705 seconds (process running for 4.076)
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
WARNING: A Java agent has been loaded dynamically (/Users/shardegger/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.7/byte-buddy-agent-1.17.7.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.series_id=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        series s2_0 
            on s2_0.id=s1_0.series_id 
    where
        s2_0.id=? 
    order by
        s1_0.volume
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    order by
        s1_0.created_at desc
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.source_url=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.rating>=? 
    order by
        s1_0.rating desc
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.title=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.word_count between ? and ?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.word_count between ? and ?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        upper(s1_0.title) like upper(?) escape '\'
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        upper(s1_0.title) like upper(?) escape '\'
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        avg(s1_0.word_count) 
    from
        stories s1_0
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    select
        avg(s1_0.rating) 
    from
        stories s1_0 
    where
        s1_0.rating is not null
Hibernate: 
    select
        sum(s1_0.word_count) 
    from
        stories s1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        count(s1_0.id) 
    from
        stories s1_0 
    where
        s1_0.created_at>=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        distinct s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.name in (?)
Hibernate: 
    select
        distinct s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.name in (?, ?)
Hibernate: 
    select
        distinct s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.name in (?) 
    fetch
        first ? rows only
Hibernate: 
    select
        count(distinct s1_0.id) 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.name in (?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.source_url is not null
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id 
    from
        stories s1_0 
    where
        s1_0.source_url=? 
    fetch
        first ? rows only
Hibernate: 
    select
        s1_0.id 
    from
        stories s1_0 
    where
        s1_0.source_url=? 
    fetch
        first ? rows only
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.series_id=? 
        and s1_0.volume=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.series_id=? 
        and s1_0.volume=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.title like ? escape '' 
        or s1_0.description like ? escape ''
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.title like ? escape '' 
        or s1_0.description like ? escape ''
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    update
        stories 
    set
        author_id=?,
        content_html=?,
        content_plain=?,
        cover_path=?,
        description=?,
        is_read=?,
        last_read_at=?,
        rating=?,
        reading_position=?,
        series_id=?,
        source_url=?,
        summary=?,
        title=?,
        updated_at=?,
        volume=?,
        word_count=? 
    where
        id=?
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    order by
        s1_0.rating desc
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.id=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    join
        story_tags t1_0 
            on s1_0.id=t1_0.story_id 
    join
        tags t1_1 
            on t1_1.id=t1_0.tag_id 
    where
        t1_1.id=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        t1_0.id,
        t1_0.color,
        t1_0.created_at,
        t1_0.description,
        t1_0.name 
    from
        tags t1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.created_at,
        s1_0.description,
        s1_0.name 
    from
        series s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        series
        (created_at, description, name, id) 
    values
        (?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        tags
        (color, created_at, description, name, id) 
    values
        (?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        story_tags
        (story_id, tag_id) 
    values
        (?, ?)
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.author_id=?
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0 
    where
        s1_0.author_id=? 
    fetch
        first ? rows only
Hibernate: 
    select
        count(s1_0.id) 
    from
        stories s1_0 
    where
        s1_0.author_id=?
2025-09-20T14:37:40.929+02:00  INFO 49733 --- [           main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.storycove.repository.AuthorRepositoryTest]: AuthorRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-09-20T14:37:40.933+02:00  INFO 49733 --- [           main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.storycove.StoryCoveApplication for test class com.storycove.repository.AuthorRepositoryTest
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        upper(a1_0.name) like upper(?) escape '\'
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        upper(a1_0.name) like upper(?) escape '\'
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id 
    from
        authors a1_0 
    where
        a1_0.name=? 
    fetch
        first ? rows only
Hibernate: 
    select
        a1_0.id 
    from
        authors a1_0 
    where
        a1_0.name=? 
    fetch
        first ? rows only
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        (
            select
                count(*) 
            from
                stories s1_0 
            where
                a1_0.id=s1_0.author_id
        )>0
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        (
            select
                count(*) 
            from
                stories s1_0 
            where
                a1_0.id=s1_0.author_id
        )>0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        distinct a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    join
        author_urls u1_0 
            on a1_0.id=u1_0.author_id 
    where
        u1_0.url like ? escape ''
Hibernate: 
    select
        distinct a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    join
        author_urls u1_0 
            on a1_0.id=u1_0.author_id 
    where
        u1_0.url like ? escape ''
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        upper(a1_0.name) like upper(?) escape '\' 
    fetch
        first ? rows only
Hibernate: 
    select
        count(a1_0.id) 
    from
        authors a1_0 
    where
        upper(a1_0.name) like upper(?) escape '\'
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    join
        stories s1_0 
            on a1_0.id=s1_0.author_id 
    group by
        a1_0.id 
    order by
        count(s1_0.id) desc
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        a1_0.name=?
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        stories
        (author_id, content_html, content_plain, cover_path, created_at, description, is_read, last_read_at, rating, reading_position, series_id, source_url, summary, title, updated_at, volume, word_count, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        (
            select
                count(*) 
            from
                stories s1_0 
            where
                a1_0.id=s1_0.author_id
        )>0 
    fetch
        first ? rows only
Hibernate: 
    select
        count(a1_0.id) 
    from
        authors a1_0 
    where
        (
            select
                count(*) 
            from
                stories s1_0 
            where
                a1_0.id=s1_0.author_id
        )>0
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        count(a1_0.id) 
    from
        authors a1_0 
    where
        a1_0.created_at>=?
Hibernate: 
    select
        count(a1_0.id) 
    from
        authors a1_0 
    where
        a1_0.created_at>=?
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    where
        a1_0.author_rating>=? 
    order by
        a1_0.author_rating desc,
        a1_0.name
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0
Hibernate: 
    select
        s1_0.id,
        s1_0.author_id,
        s1_0.content_html,
        s1_0.content_plain,
        s1_0.cover_path,
        s1_0.created_at,
        s1_0.description,
        s1_0.is_read,
        s1_0.last_read_at,
        s1_0.rating,
        s1_0.reading_position,
        s1_0.series_id,
        s1_0.source_url,
        s1_0.summary,
        s1_0.title,
        s1_0.updated_at,
        s1_0.volume,
        s1_0.word_count 
    from
        stories s1_0
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        authors
        (author_rating, avatar_image_path, created_at, name, notes, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    update
        authors 
    set
        author_rating=?,
        avatar_image_path=?,
        name=?,
        notes=?,
        updated_at=? 
    where
        id=?
Hibernate: 
    insert 
    into
        author_urls
        (author_id, url) 
    values
        (?, ?)
Hibernate: 
    select
        a1_0.id,
        a1_0.author_rating,
        a1_0.avatar_image_path,
        a1_0.created_at,
        a1_0.name,
        a1_0.notes,
        a1_0.updated_at 
    from
        authors a1_0 
    order by
        a1_0.author_rating desc,
        a1_0.name
2025-09-20T14:37:41.420+02:00 DEBUG 49733 --- [           main] com.storycove.service.AuthorService      : Setting author rating: null for author: Test Author (current rating: null)
2025-09-20T14:37:41.420+02:00 DEBUG 49733 --- [           main] com.storycove.service.AuthorService      : Saved author rating: null for author: Test Author
2025-09-20T14:37:41.428+02:00 DEBUG 49733 --- [           main] com.storycove.service.AuthorService      : Setting author rating: 4 for author: Test Author (current rating: null)
2025-09-20T14:37:41.428+02:00 DEBUG 49733 --- [           main] com.storycove.service.AuthorService      : Saved author rating: 4 for author: Test Author
