* @param object Other object to check
*/
@Override
- boolean equals (final Object object);
+ boolean equals (final Object object);
/**
* Getter for item amount
* Hash-code calculation
*/
@Override
- int hashCode ();
+ int hashCode ();
/**
* Determines whether the item has a Product instance set
// Not open
throw new IllegalStateException("Entity manager is closed.");
}
-
+
// Generate fake order instance
Orderable orderable = null;
-
+
// Generate access keyy
String accessKey = null;
-
+
// Default is found
boolean isFound = true;
while (isFound) {
// Both number parts
String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1_000_000)), em, customer.getCustomerNumber());
-
+
// Generate access key, use SHA512 hashing and BASE64-encoding for strong key generation
accessKey = Base64.encodeBase64String(Sha2Crypt.sha512Crypt(randString.getBytes()).getBytes()).substring(0, 100);
-
+
// Try this
try {
// Get reference