I want to use aws lambda update-function-code command to deploy the code of my function. The problem here is that aws CLI always prints out some information after deployment. That information contains sensitive information, such as environment variables and their values. That is not acceptable as I'm going to use public CI services, and I don't want that info to become available to anyone. At the same time I don't want to solve this by directing everything from AWS command …
我是休眠的新手,我有下一个情况:
@Entity
class Post {
@Id id;
@ManyToMany
@JoinTable(name = "ATag", joinColumns = @JoinColumn(name = "post_id"),
inverseJoinColumns = @JoinColumn(name = "tag_id"))
Set<Tag> tags;
}
@Entity
class Tag {
@Id Long id;
String name;
}
Run Code Online (Sandbox Code Playgroud)
表对字段tag有约束。如果我使用名称已经存在的标签保存帖子对象,它将返回如下错误:uniquename
Nov 25, 2014 9:23:13 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: ERROR: duplicate key value violates unique constraint "tags_name_key"
Detail: Key (name)=(ert) already exists.
org.hibernate.exception.ConstraintViolationException: could not execute statement
Run Code Online (Sandbox Code Playgroud)
我该如何处理这种情况?
我有env.variable $ JAVA_HOME它指向jdk7的文件夹但如果我执行"mvn -version"我看到下一个
MacBook-Pro-Erik:~ erik$ mvn -version
728-version
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 06:15:32+0400)
Maven home: /Users/erik/distribs/maven/apache-maven-3.1.0
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"
Run Code Online (Sandbox Code Playgroud)
如何强制maven使用正确的jdk?我有java.lang.UnsupportedClassVersionError因为这个问题:(