Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:27:29+00:00 2026-05-27T00:27:29+00:00

Hypothetical scenario: I have two models: Author and Book . The Book model has

  • 0

Hypothetical scenario: I have two models: Author and Book. The Book model has a many-to-one relationship for Author.

Let’s say that I only want to audit changes to Book. I annotate the class with @Audited, but get an error complaining that the getAuthor() property of Book can not be audited since Author is not audited.

Why is this? I want to audit if the author of the book changes, but I don’t care if the authors nickname changes. It doesn’t make sense for to have an author_aud table in my database, but apparently this is not possible unless I go ahead and audit the Author model OR specifically annotate the getAuthor() property with an @Audited(...) with a property to ignore the relationship. However, if I do this I will no longer be able to audit the book/author relationship.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:27:29+00:00Added an answer on May 27, 2026 at 12:27 am

    You will probably not be able to audit the book and it’s author relationship if the author is not audited.
    Maybe you should change the way the relation is mapped : it’s strange to have a book “own” it’s author : I would have done an unidirectionnal manyToOne relationship from author to its books. With this conception, you will be able to audit the books without auditing the authors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hypothetical situation: let's say I have a 3rd party .net assembly being used in
This is a hypothetical scenario. Let's say you've just been hired at a company
In this hypothetical example, imagine I have an object FooSet that has five properties
This is a rather hypothetical question, but let's say I have 3 long parameters
While fleshing out a hypothetical domain model, I have found myself wondering whether the
I have a hypothetical tree view that contains this data: RootNode Leaf vein SecondRoot
Hypothetical example: I have Cars and Owners. Each Car belongs to one (and only
Hypothetical example: I have an SQL table that contains a billion or so transactions:
In the hypothetical scenario where I have a couple of database tables, in a
I have the following (hypothetical) scenario: Application to report on students in classes in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.