@XmlElementWrapper(name="orders") @XmlJavaTypeAdapter(OrderJaxbAdapter.class) @XmlElements({ @XmlElement(name="order_2",type=Order2.class), @XmlElement(name="old_order",type=OldOrder.class) }) @JsonIgnore @JsonProperty @NotNull @ManyToMany @Fetch(FetchMode.SUBSELECT) @JoinTable( name = "customer_order", joinColumns = { @JoinColumn(name = "customer_id", referencedColumnName = "id") }, inverseJoinColumns = { @JoinColumn(name = "order_id", referencedColumnName = "id") } ) private List orders; Wait. What? Is this really what we have come to? I can't even see the damn property under this bloat. How did this happen? Yeah ok - we had to get rid of the old xml configuration horror somehow. But this? This is even WORSE. This class is supposed to be a goddamn pojo with a bunch of properties. Short and concise, easy to read. I, as a reader of this
...és valóban... néha egy "hasznos" kódsor felett ott van több sornyi annotáció, amelyek miatt szinte már meg is látszik a kód... valóban szükség van ennyi annotációra? :)
2 Comments
Auth Gábor
...és valóban... néha egy "hasznos" kódsor felett ott van több sornyi annotáció, amelyek miatt szinte már meg is látszik a kód... valóban szükség van ennyi annotációra? :)
Anonymous
Ez így inkább egy built in sticky notes -nak tűnik.