Skip to content

Instantly share code, notes, and snippets.

View dfreudenberger's full-sized avatar

Daniel Freudenberger dfreudenberger

View GitHub Profile
@Component
class UpdateTotalPriceInterceptor extends EmptyInterceptor
{
@Override
public void preFlush(Iterator entities)
{
while (entities.hasNext()) {
updatePriceIfOrder(entities.next());
}
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
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
-----------------
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]
[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]]
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
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
@Component
@Scope("request")
@Path("/order")
@Transactional(readOnly = true)
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class OrderController
{
@Autowired
private OrderService orderService;
<?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))
<?php
use Service\Warehouse\Model\StorageArea;
use Service\Warehouse\Model\Position;
abstract class Tag_Stock_Abstract implements Tag_Stock_Interface
{
/**
* @var array
*/