# Hibernate Search 6 - computed mapping

**URL:** <https://discourse.hibernate.org/t/hibernate-search-6-computed-mapping/3015>\
**Category:** Hibernate Search\
**Created:** [July 26, 2019, 2:18pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-computed-mapping/3015 "2019-07-26T14:18:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis\_Cucumel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/alexis_cucumel/32/687_2.png) [@Alexis\_Cucumel](https://discourse.hibernate.org/u/Alexis_Cucumel)\
**Post date:** [July 26, 2019, 2:18pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-computed-mapping/3015/1 "2019-07-26T14:18:13Z")

</div>

Hello !  
i don’t know if it’s really an issue but the annotation mapping don’t work on Transient method who don’t start width **get**

this works

```auto
@Transient
	@FullTextField(name = "libelle", analyzer = "standard", searchable = Searchable.YES)
	@IndexingDependency(derivedFrom = {
			@ObjectPath({@PropertyValue(propertyName = "yyyy"), @PropertyValue(propertyName = "xxxx")}))

	public String getLibelle() {
		return computedLibelle();
	}

```

this not

```auto
@Transient
	@FullTextField(name = "libelle", analyzer = "standard", searchable = Searchable.YES)
	@IndexingDependency(derivedFrom = {
			@ObjectPath({@PropertyValue(propertyName = "yyyy"), @PropertyValue(propertyName = "xxxx")}))

	public String libelle() {
		return computedLibelle();
	}

```

---

<div class="post-metadata">

**Author:** ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)\
**Post date:** [July 26, 2019, 2:29pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-computed-mapping/3015/2 "2019-07-26T14:29:06Z")

</div>

It’s expected; if I remember correctly Hibernate ORM is similarly limited and only considers getters that start with `get`.

We can’t completely fix this in Hibernate Search until the limitation is removed in ORM, for various reasons. We might be able to support non-standard getters for transient methods, but I’m really not sure about it.

---

<div class="post-metadata">

**Author:** ![Alexis\_Cucumel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/alexis_cucumel/32/687_2.png) [@Alexis\_Cucumel](https://discourse.hibernate.org/u/Alexis_Cucumel)\
**Post date:** [July 26, 2019, 6:35pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-computed-mapping/3015/3 "2019-07-26T18:35:05Z")

</div>

Thx for the reply 😉
