Questions tagged [post-update]

event fired on update of entity

33 questions
10
votes
1 answer

update version each time git push is done?

how do we do like changing version ( each +1 ) using git on each push? example i have a 2 php file libs/lib1.php libs/lib2.php on each header usually there is some information like /** * LIB1.PHP * this libs does something like this * and that…
Adam Ramadhan
  • 22,112
  • 25
  • 79
  • 120
6
votes
1 answer

SVN post-update hook

I searched on the web for info about how to implement a post-update hook in my local machine but i didnt found anything! In particular I would like to fire that hook after I update my svn copy from PHPStorm 3.0. I wrote a phing build.xml that will…
oloN3rd
  • 63
  • 1
  • 3
4
votes
1 answer

Error #200 Facebook SDK Android

dear friends, I am developing an application with Facebook integration on Android using the Facebook SDK. My application should just be able to post a link. I use this code: this.req = new Request(session, "me/feed", b, HttpMethod.POST, …
3
votes
1 answer

Manage http access to git repositories using gitosis

[Update 9/16/2010] After looking into this last night, I realized that my original question was really asking 2 separate things: 1) Is it possible to set the post-update hook for all remote repositories created by gitosis (i.e. not have to manually…
cdwilson
  • 3,658
  • 4
  • 21
  • 29
3
votes
0 answers

Symfony 2 livecycle - don't update | PHPCR

I have problem with my phpcr document. I try to implement, upload file like http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html but I have problem with file changing. It look like sf2 doesn't see any changes. When I changed (for…
Micchaleq
  • 393
  • 1
  • 4
  • 16
3
votes
1 answer

Permissions are too open after pushing from Windows to Bitbucket, then pulling to a Linux server?

I write code on my local machine. I push the code to a Mercurial repo in Bitbucket. Then, I log into the client's webserver and "pull/update" from the Bitbucket repo to the server. The problem is the that their account is on a shared server, running…
Van J. Wilson
  • 156
  • 1
  • 7
2
votes
1 answer

Null entity field makes @PostUpdate method silently stop

I have a JPA domain entity that I'm updating from user input. Depending on lots of factors about that object, it has actions to perform when it's updated (in this case, the update is to "mark it completed"). In the database, two "post-completion…
Dan Ray
  • 21,345
  • 6
  • 61
  • 86
2
votes
2 answers

Send push notifications using firebase to all the users

How can I send push notifications to all the registered users of my App using Firebase? I searched for the api's in documentary, but didn't found anything useful.
2
votes
1 answer

Symfony2 Composer post-install-cmd

I need to install an symfony2 bundle over the composer and do some stuff after the install process. So for the "stuff" after the install i add one line to the "post-install-cmd" in the composer.json…
Zero
  • 504
  • 9
  • 21
2
votes
1 answer

JPA PostUpdate with Spring Roo

I'm working with Spring Roo 1.2.3 on a project, and I need to create a new record of another entity X when the entity Stock is updated. I would do something like this (Similar to a trigger update in database). @PostPersist @PostUpdate private void…
Hector
  • 571
  • 2
  • 8
  • 22
2
votes
2 answers

Git: Post-update hook that runs a script that needs access to all files in the repository

I'm running into a bit of dilemma at the moment in that I need a script to run whenever the remote repository is updated (ie, whenever someone runs git push) that builds packages from the files in the repository. These packages are then placed into…
Matthew Iselin
  • 9,728
  • 3
  • 47
  • 59
2
votes
3 answers

How to change owner after executing post-update hook?

Gitolite and a Web-server stored on one server. Directory /var/www/site is clone of repo "site". A Git user consist in group www-data. I have in /home/git/repositories/site.git/hooks/post-update hook: #!/bin/sh unset GIT_DIR cd /var/www/site &&…
hxwalker
  • 115
  • 2
  • 7
2
votes
2 answers

Hibernate envers - How to store only updated values

I am using Hibernate Envers for my Auditing. Post-update and post-insert works fine. I have a requirement where I need to audit only the updated columns in the audit table (e.g. employee_aud). By default envers will insert the entire persisted…
1
vote
3 answers

SVN post-update hook per project?

It appears that post-update hooks apply to the entire SVN setup on a machine, but I'm looking to set individual hooks per project. From what I can see, you set up your hooks in settings, which is global. Any idea as to how I can pull off…
Savage
  • 2,015
  • 1
  • 26
  • 33
1
vote
0 answers

0curl: (7) Failed to connect to hooks.slack.com port 443: Connexion refused

I am trying to send message in slack channel from my post-update hook git with this code : #!/bin/bash #echo "********* Notification Slack *********" curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}'…
Matthieu
  • 171
  • 2
  • 13
1
2 3