我理解hibernate @JoinTable注释,但我不理解inverseJoinColumns.它是干什么用的?
例如
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinTable(name = "stock_category", catalog = "mkyongdb", joinColumns = {
@JoinColumn(name = "STOCK_ID", nullable = false, updatable = false) },
inverseJoinColumns = { @JoinColumn(name = "CATEGORY_ID",
nullable = false, updatable = false) })
public Set<Category> getCategories() {
return this.categories;
}
Run Code Online (Sandbox Code Playgroud) 我在StackOverflow上发现了许多帖子,这些帖子已经用C++,C#和其他语言覆盖了这个问题,但是没有使用Shell.
使用Bash/Shell,如何将随机String转换为byte array?
我试过了:
echo "some string" | xxd -r -p
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
我基本上想要一个字节输出 - 例如 )?e?GV??vY?Ge?#G