Command | Description |
---|---|
Shift x2 | Search anywhere |
Ctrl x2 | Run anything |
Ctrl N | Open any class |
Ctrl Shift N | Open any file |
Alt F7 | Find references |
Alt J | Quick search and replace |
Transaction synchronization is the process by which a persistence context is registered with a transaction so that the persistence context can be notified when a transaction commits. The provider uses this notification to ensure that a given persistence context is correctly flushed to the database.
Transaction association is the act of binding a persistence context to a transaction. You can also think of this as the
This file contains hidden or 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
/** | |
* Unwinds Java exception stack and converts it to a formatted string. | |
* | |
* e.g. | |
* | |
* Exception in thread "main" | |
* java.lang.RuntimeException: java.lang.RuntimeException: test | |
* at com.example.Main.foo(Main.java:50) | |
* at com.example.Main.test(Main.java:40) | |
* at com.example.Main.main(Main.java:14) |
This file contains hidden or 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
@echo off | |
setlocal | |
rem Must run elevated | |
net session > nul 2>&1 | |
if not %errorLevel% == 0 ( | |
echo Error: Please re-run as admin | |
goto end | |
) |
This file contains hidden or 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
@rem ------------------------------------------------------ | |
@rem Usage: | |
@rem nexus_mvn_deploy.bat <groupId> <artifactId> <version> <path/to/file> <path/to/maven_settings> | |
@rem | |
@rem ------------------------------------------------------ | |
@echo off | |
setlocal | |
if "%1" == "" ( |
This file contains hidden or 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
@rem ------------------------------------------------------ | |
@rem Usage: | |
@rem mvn.bat <phase_or_goal> <list_of_modules> <path/to/settings.xml> | |
@rem | |
@rem phase_or_goal - compile, package, test | |
@rem list_of_modules - Comma-delimited list of modules in a multi-module project: | |
@rem "module_name_to_include,!module_name_to_exclude" | |
@rem | |
@rem Example: | |
@rem mvn.bat package "main-module,!deprecated-module" "%homepath%\.m2\settings.xml" |
This file contains hidden or 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
#include <map> | |
#include <array> | |
#include <string> | |
#include <vector> | |
#include <memory> | |
#include <sstream> | |
#include <cassert> | |
#include <iostream> | |
#include <exception> |
This file contains hidden or 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
@rem ------------------------------------------------------ | |
@rem Decompiles Java JAR files. | |
@rem This script depends on the following libraries: | |
@rem * 7ZIP CLI : https://www.7-zip.org/a/7z1900-extra.7z | |
@rem * jad decompiler: http://www.kpdus.com/jad/winnt/jadnt158.zip | |
@rem ------------------------------------------------------ | |
@echo off | |
setlocal |