Writing my first book: Update Week 1
Take your skills to the next level!
The Persistence Hub is the place to be for every Java developer. It gives you access to all my premium video courses, monthly Java Persistence News, monthly coding problems, and regular expert sessions.
That were incredible short 1.5 weeks since I announced the book. And unfortunately, they were not very productive. I had a few other things I needed to finish up, and our son got a cold. That’s not a good thing if you’re working from home without a real office.
But enough excuses and complaining. I got a few things done that I want to share with you.
The first official outline
I already gave you a quick description of the major topics and structure of the book in the announcement post. During this last week, I spend a few additional hours brainstorming and organizing my ideas for the book. And this was the first result:
I collected more than 100 potential Hibernate Tips. That are a few more than I planned to write. The idea was to create a small book with 60-80 tips.
But it’s always good to start with more ideas than you need. I already removed a few of them and decided to merge a few others. And I’m sure this is not the final version. I will adapt it while I write the book and get some feedback.
Let’s have a look at the current structure. These are the main topics each with a few potential tips:
- Simple Mappings
- Define table and schema name
- Simple primary keys
- Map n:m association
- …
- Advanced Mappings
- Combined primary keys
- Embeddable
- Map read-only views
- …
- JPQL
- Simple named queries
- Pagination
- Query timeout
- …
- Criteria API
- Tuple projections
- Call custom functions
- JPA Metamodel
- …
- Call Stored Procedures
- NamedStoredProcedureQuery
- Dynamic stored procedure query
- Hibernate Queries
- Access Hibernate APIs
- Join unrelated entities
- Load by multiple IDs
- …
- Native Queries
- Simple named queries
- Entity mapping
- Native update
- …
- Logging
- Hibernate Statistics
- SQL comments
- SQL statements
- Java 8 Support in Hibernate 5
- Streams
- Optional
- Date and Time API
- …
- Database Setup
- Generate script
- Test DB setup
- …
- Caching
- Activate 2nd Level
- Activate QueryCache
- …
- Envers
- Activate Audit Log
- Return all revisions of an entity
- Return changes made by user
- …
- Hibernate Spatial
- Store a geolocation
- Search for a geolocation
- Radius search
- …
What do you think?
Am I missing an important topic?
Is there something I don’t need to write about?
Please tell me about it in the comments.
First chapters are out
If you signed up to get early versions of my book, you received an email with an announcement of this post and 3 edited Hibernate Tips. I’m looking forward to getting your opinion on them.