我已经完成了我的表单的第一个验证器,我有一种感觉,这不是它应该完成的方式。 它的工作原理,但它看起来像丑陋的代码,有人可以帮忙吗? 我的表格: class CountryForm(forms.ModelForm):
"""Form to create or edit Countries."""
class Meta:
model = Country
d
我有两个实体: public class ParentThing
{
[Key]
public int Id { get; set; }
[Required]
public ChildThing TheFirstThing { get; set; }
public ChildThing TheSecondThing { get; set; }
我在我的应用程序中使用驼峰2.8.4。我的应用程序将接收来自队列的请求,然后该请求将由验证程序验证。根据消息的内容,Validator会将请求转发到不同的目的地。验证器将是一个POJO bean。目的地将从数据库中获得(这是一个MUST)。我更喜欢使用spring dsl for camelContext。 1. I dont know how to write the validator to