Removing an entity

2,051 views
Skip to first unread message

Christophe Bornet

unread,
Nov 13, 2015, 5:04:26 AM11/13/15
to JHipster dev team
Hi all,

I have found that it it is quite hard to remove an existing entity so I would like to work on a feature to cleanly remove entities. Something like yo jhipster:entity Foo clean. Do you think that would be useful ?

Julien Dubois

unread,
Nov 13, 2015, 5:44:19 AM11/13/15
to Christophe Bornet, JHipster dev team
I've already had this question and my answer was to use Git instead :-)

Then again: I'm very conservative for our "main" generator as afterwards we need to maintain all that code, and that's making me think more and more about the "plugin" system. That would definitively be the right solution.

On Fri, Nov 13, 2015 at 11:04 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Hi all,

I have found that it it is quite hard to remove an existing entity so I would like to work on a feature to cleanly remove entities. Something like yo jhipster:entity Foo clean. Do you think that would be useful ?

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/5a4a0c6c-5455-4bdb-acbd-03960aeefde0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julien Dubois

Deepu K Sasidharan

unread,
Nov 13, 2015, 6:51:28 AM11/13/15
to Julien Dubois, Christophe Bornet, JHipster dev team

Yes a seperate yo generator that just reads the files and does stuff
If we modularize our main gen and sub gen so that all reusable code and utils are in a seperate npm module then any yo generator can inject them and use those to do stuff

Christophe Bornet

unread,
Nov 13, 2015, 8:29:45 AM11/13/15
to JHipster dev team, bornet...@gmail.com
Oh yes ! I always use git when upgrading/adding entities. It didn't occur to me that I could use it to remove entities... :-) Thanks a lot !


On Friday, November 13, 2015 at 11:44:19 AM UTC+1, Julien Dubois wrote:
I've already had this question and my answer was to use Git instead :-)

Then again: I'm very conservative for our "main" generator as afterwards we need to maintain all that code, and that's making me think more and more about the "plugin" system. That would definitively be the right solution.
On Fri, Nov 13, 2015 at 11:04 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Hi all,

I have found that it it is quite hard to remove an existing entity so I would like to work on a feature to cleanly remove entities. Something like yo jhipster:entity Foo clean. Do you think that would be useful ?

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/5a4a0c6c-5455-4bdb-acbd-03960aeefde0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christophe Bornet

unread,
Nov 23, 2015, 3:55:21 AM11/23/15
to JHipster dev team, bornet...@gmail.com
Actually, git is not enough : it's OK for files that are modified such as liquibase's master.xml but it doesn't allow to remove previously created files (like FooResource.java).
You could generate a twin project and make a diff from it but it's a bit overkill and I think not really convenient.

Zsombor

unread,
Nov 23, 2015, 5:00:35 AM11/23/15
to Christophe Bornet, JHipster dev team
You can run "git clean -df" to get rid of the untracked files anytime.

Regards,
 Zsombor

On Mon, Nov 23, 2015 at 9:55 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Actually, git is not enough : it's OK for files that are modified such as liquibase's master.xml but it doesn't allow to remove previously created files (like FooResource.java).
You could generate a twin project and make a diff from it but it's a bit overkill and I think not really convenient.


On Friday, November 13, 2015 at 2:29:45 PM UTC+1, Christophe Bornet wrote:
Oh yes ! I always use git when upgrading/adding entities. It didn't occur to me that I could use it to remove entities... :-) Thanks a lot !

On Friday, November 13, 2015 at 11:44:19 AM UTC+1, Julien Dubois wrote:
I've already had this question and my answer was to use Git instead :-)

Then again: I'm very conservative for our "main" generator as afterwards we need to maintain all that code, and that's making me think more and more about the "plugin" system. That would definitively be the right solution.
On Fri, Nov 13, 2015 at 11:04 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Hi all,

I have found that it it is quite hard to remove an existing entity so I would like to work on a feature to cleanly remove entities. Something like yo jhipster:entity Foo clean. Do you think that would be useful ?

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/5a4a0c6c-5455-4bdb-acbd-03960aeefde0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julien Dubois

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.

Christophe Bornet

unread,
Nov 23, 2015, 7:31:22 AM11/23/15
to JHipster dev team, bornet...@gmail.com, gzso...@gmail.com
But the files that need to be removed are tracked, so they won't be cleaned.


On Monday, November 23, 2015 at 11:00:35 AM UTC+1, Zsombor wrote:
You can run "git clean -df" to get rid of the untracked files anytime.

Regards,
 Zsombor
On Mon, Nov 23, 2015 at 9:55 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Actually, git is not enough : it's OK for files that are modified such as liquibase's master.xml but it doesn't allow to remove previously created files (like FooResource.java).
You could generate a twin project and make a diff from it but it's a bit overkill and I think not really convenient.


On Friday, November 13, 2015 at 2:29:45 PM UTC+1, Christophe Bornet wrote:
Oh yes ! I always use git when upgrading/adding entities. It didn't occur to me that I could use it to remove entities... :-) Thanks a lot !

On Friday, November 13, 2015 at 11:44:19 AM UTC+1, Julien Dubois wrote:
I've already had this question and my answer was to use Git instead :-)

Then again: I'm very conservative for our "main" generator as afterwards we need to maintain all that code, and that's making me think more and more about the "plugin" system. That would definitively be the right solution.
On Fri, Nov 13, 2015 at 11:04 AM, Christophe Bornet <bornet...@gmail.com> wrote:
Hi all,

I have found that it it is quite hard to remove an existing entity so I would like to work on a feature to cleanly remove entities. Something like yo jhipster:entity Foo clean. Do you think that would be useful ?

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/5a4a0c6c-5455-4bdb-acbd-03960aeefde0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julien Dubois

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages