# Hibernate jpamodel generator is always UP-TO-DATE

**URL:** <https://discuss.gradle.org/t/hibernate-jpamodel-generator-is-always-up-to-date/10734>\
**Category:** Help/Discuss\
**Created:** [July 22, 2015, 10:03am UTC](https://discuss.gradle.org/t/hibernate-jpamodel-generator-is-always-up-to-date/10734 "2015-07-22T10:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeusdi](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jeusdi](https://discuss.gradle.org/u/jeusdi)\
**Post date:** [July 22, 2015, 10:03am UTC](https://discuss.gradle.org/t/hibernate-jpamodel-generator-is-always-up-to-date/10734/1 "2015-07-22T10:03:16Z")

</div>

I’ve created [this](https://gist.github.com/jeusdi/c8b9b7c8ea28c37292df) script.  
As you can see, I’d like to generate JPA metamodel classes of my JPA entities.

As you can see I’ve created a ‘jpamodelgen’, and I’ve assigned to it a sourceSet.

Obviouly, I’ve created a task in order to perform the processor. However, when I perform it, it’s always on UP-TO-DATE state, and it doesn’t generates me nothing.

Waht am I doing wrong?  
I’ll appreciate a LOT your help.  
Thanks for all.
