This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
class UpdateTotalPriceInterceptor extends EmptyInterceptor | |
{ | |
@Override | |
public void preFlush(Iterator entities) | |
{ | |
while (entities.hasNext()) { | |
updatePriceIfOrder(entities.next()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.persistence.CascadeType; | |
import javax.persistence.Entity; | |
import javax.persistence.FetchType; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; | |
import javax.persistence.OneToOne; | |
import javax.persistence.PrimaryKeyJoinColumn; | |
import javax.persistence.Table; | |
@Table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> show engine innodb status \G | |
*************************** 1. row *************************** | |
Type: InnoDB | |
Name: | |
Status: | |
===================================== | |
2017-01-06 21:21:53 0x70000e6fb000 INNODB MONITOR OUTPUT | |
===================================== | |
Per second averages calculated from the last 48 seconds | |
----------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread pointer: 0x0x0 | |
Attempting backtrace. You can use the following information to find out | |
where mysqld died. If you see no messages after this, something went | |
terribly wrong... | |
stack_bottom = 0x0 thread_stack 0x48000 | |
addr2line: './mysqld': No such file | |
./mysqld(my_print_stacktrace+0x35)[0xc3b367] | |
./mysqld(handle_fatal_signal+0x355)[0x7b9639] | |
/lib64/libpthread.so.0(+0xf500)[0x7f06b7330500] | |
./mysqld(my_stat+0x100)[0xc34ea6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@accounting mariadb-5.5.25]# /etc/init.d/mysql restart | |
ERROR! MySQL server PID file could not be found! | |
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/accounting.pid). | |
[root@accounting mariadb-5.5.25]# cat /var/log/mysqld.log | |
120821 00:03:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql | |
120821 0:03:48 [ERROR] Can't find messagefile '/usr/share/errmsg.sys' | |
120821 0:03:48 [ERROR] Aborting | |
[root@accounting mariadb-5.5.25]# cat ~/.my.cnf | |
[[mysqld]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120820 22:33:32 mysqld_safe Number of processes running now: 0 | |
120820 22:33:32 mysqld_safe mysqld restarted | |
120820 22:33:32 InnoDB: The InnoDB memory heap is disabled | |
120820 22:33:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
120820 22:33:32 InnoDB: Compressed tables use zlib 1.2.3 | |
120820 22:33:32 InnoDB: Using Linux native AIO | |
120820 22:33:32 InnoDB: Initializing buffer pool, size = 4.0G | |
120820 22:33:32 InnoDB: Completed initialization of buffer pool | |
120820 22:33:32 InnoDB: highest supported file format is Barracuda. | |
InnoDB: Log scan progressed past the checkpoint lsn 53249756805 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120820 10:23:00 [Note] Event Scheduler: Purging the queue. 0 events | |
120820 10:23:45 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.003107', position 192086484 | |
120820 10:23:45 InnoDB: Starting shutdown... | |
120820 10:23:47 InnoDB: Shutdown completed; log sequence number 55714521290 | |
120820 10:23:47 [Note] /usr/libexec/mysqld: Shutdown complete | |
120820 10:23:47 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended | |
120820 10:23:49 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql | |
120820 10:23:49 [Note] Plugin 'FEDERATED' is disabled. | |
120820 10:23:49 InnoDB: The InnoDB memory heap is disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Scope("request") | |
@Path("/order") | |
@Transactional(readOnly = true) | |
@Produces(MediaType.APPLICATION_JSON) | |
@Consumes(MediaType.APPLICATION_JSON) | |
public class OrderController | |
{ | |
@Autowired | |
private OrderService orderService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @test | |
*/ | |
public function putAway_should_flush_em_after_entity_was_saved() | |
{ | |
$pos = Position::parse('bck1-1-1'); | |
$sku = new Sku(1); | |
$this->repo->expects($this->at(0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Service\Warehouse\Model\StorageArea; | |
use Service\Warehouse\Model\Position; | |
abstract class Tag_Stock_Abstract implements Tag_Stock_Interface | |
{ | |
/** | |
* @var array | |
*/ |
NewerOlder