Not sure if this is still valid, but when I travelled by train in Germany back in 2014, the conductor wanted to verify the credit card I used to purchase the ticket. I would suggest you have the CC you purchased the ticket with you, in case you're asked to present it.