[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-1096) @Transient Fields are never marked dirty

Marc Schipperheyn (JIRA) noreply at atlassian.com
Fri Apr 13 11:48:48 EDT 2012


@Transient Fields are never marked dirty
----------------------------------------

                 Key: HSEARCH-1096
                 URL: https://hibernate.onjira.com/browse/HSEARCH-1096
             Project: Hibernate Search
          Issue Type: Bug
          Components: engine
    Affects Versions: 4.1.0.Final
            Reporter: Marc Schipperheyn


Transient @Fields that rely on underlying @Fields are never marked dirty. When an underlying @Field is marked dirty, the @Transient related @Field should also be marked dirty. I suppose that without additional metadata (see HSEARCH-1093), a @Transient @Field should be considered dirty by default, although this may lead to unnecessary database calls.

{code}
@Field
@IndexedEmbedded
public Photo getPhoto(){
  return photo;
}

@Transient
@Field
public String getPhotoUrl(){
  return photoDir + "/" + photo.getFilename();
}
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list