git log
--pretty=format:"%h - %ch - %<(20) %s" --after="2022-06-22" \
--right-only --cherry-pick --no-merges \
branch...mainIt seems like mapping a LOB-type from Hibernate is not as easy as you'd think. If you're like me, you'll toss something like the following annotation to a POJO and hoping that all is fine:
@Lob
@Column(name = "picture")
private byte[] picture;
However, lo and behold - things is not as expected. Hibernate throws all kinds of fancy exceptions - such as:
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
| import java.net.InetAddress; | |
| import java.net.UnknownHostException; | |
| // try InetAddress.LocalHost first; | |
| // NOTE -- InetAddress.getLocalHost().getHostName() will not work in certain environments. | |
| try { | |
| String result = InetAddress.getLocalHost().getHostName(); | |
| if (StringUtils.isNotEmpty( result)) | |
| return result; | |
| } catch (UnknownHostException e) { |
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
| import os | |
| import re | |
| def no_cyrillic_hook(ui, repo, **kwargs): | |
| _changedFiles = [os.path.basename(file) for file in repo[kwargs['node']].changeset()[3]] | |
| for t in _changedFiles: | |
| try: | |
| t.decode('ascii') |
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
| // vue.config.js | |
| module.exports = { | |
| // options... | |
| devServer: { | |
| host: 'localhost', | |
| port: 8080, | |
| headers: { | |
| 'Access-Control-Allow-Origin': '*', | |
| 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept' |
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
| <repositories> | |
| <repository> | |
| <id>jboss</id> | |
| <url>http://repository.jboss.org/nexus/content/groups/public/</url> | |
| </repository> | |
| </repositories> | |
| <dependencies> | |
| <!-- core library --> | |
| <dependency> | |
| <groupId>org.jboss.resteasy</groupId> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
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
| --The following statement uses a suquery to delete duplicate rows and keep the row with the lowest id. | |
| DELETE FROM basket | |
| WHERE id IN | |
| (SELECT id | |
| FROM | |
| (SELECT id, | |
| ROW_NUMBER() OVER( PARTITION BY fruit | |
| ORDER BY id ) AS row_num | |
| FROM basket ) t | |
| WHERE t.row_num > 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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId></groupId> | |
| <artifactId></artifactId> | |
| <version></version> | |
| <packaging>pom</packaging> | |
| <name></name> |
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
| To install WildFly as a service on Ubuntu 14.04 do steps described below. | |
| This guide is suitable for installing WildFly 8 and 9. | |
| In order to run WildFly Java Development Kit (JDK) is required. | |
| To install Oracle JDK you can use WebUpd8 PPA. | |
| To add PPA add-apt-repository utility should be used. |
NewerOlder